comparison system/system.py @ 329:2bbcf00b8d2a

hgignore and reformat
author drewp@bigasterisk.com
date Sun, 23 Feb 2025 15:08:58 -0800
parents 5b88b38f2471
children 50a8b6c39b38
comparison
equal deleted inserted replaced
328:8558ea135812 329:2bbcf00b8d2a
122 files.put(dest=f"/etc/tgt/conf.d/{pi_hostname}.conf", 122 files.put(dest=f"/etc/tgt/conf.d/{pi_hostname}.conf",
123 src=StringIO(f""" 123 src=StringIO(f"""
124 <target iqn.2024-03.com.bigasterisk:{pi_hostname}.target> 124 <target iqn.2024-03.com.bigasterisk:{pi_hostname}.target>
125 backing-store {out} 125 backing-store {out}
126 initiator-name iqn.2024-03.com.bigasterisk:{pi_hostname}.initiator 126 initiator-name iqn.2024-03.com.bigasterisk:{pi_hostname}.initiator
127 </target> 127 </target>
128 """)) 128 """))
129 # restarting is disruptive to connected pis, and they might need to be 129 # restarting is disruptive to connected pis, and they might need to be
130 # visited: 130 # visited:
131 #systemd.service(service='tgt.service', running=True, restarted=True) 131 #systemd.service(service='tgt.service', running=True, restarted=True)
132 132