Browse Source

enough: limit the list of hosts

Refs: main/infrastructure#350
Refs: main/infrastructure#351
keep-around/fe6a57ffd0cdf1b2676a5c9a94ca46ad19c84b30
Loïc Dachary 6 months ago
parent
commit
fe6a57ffd0
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 5
      docs/release-notes.rst
  2. 3
      enough/common/service.py

5
docs/release-notes.rst

@ -1,6 +1,11 @@
Release Notes
=============
2.1.35
------
* Bug fixes.
2.1.33
------

3
enough/common/service.py

@ -122,10 +122,9 @@ class Service(object):
if not os.path.exists(playbook_file):
playbook_file = f'{self.share_dir}/{self.args["playbook"]}'
subset = f"{service}-service-group:{service}-client-group:&live"
playbook.run([
f'--private-key={self.dotenough.private_key()}',
'--limit', subset,
'--limit', ','.join(hosts + ['localhost']),
playbook_file,
])
return {'fqdn': f'{self.args["name"]}.{self.args["domain"]}'}

Loading…
Cancel
Save