Skip to content
Snippets Groups Projects
Commit 8c6cdf3c authored by František Dvořák's avatar František Dvořák
Browse files

Enable generating of the certificates

parent f79bc691
No related branches found
No related tags found
No related merge requests found
Pipeline #438 passed
......@@ -10,6 +10,7 @@ public_hosts
secrets.auto.tfvars
site.pp
site2.pp
site.yaml
terraform
terraform.tfstate
terraform.tfstate.backup
......
......@@ -103,6 +103,17 @@ ff02::2 ip6-allrouters
%s ansible_user=%s ansible_become=true ansible_host=%s ansible_ssh_common_args=\'\
-o ForwardAgent=yes -o ProxyCommand="ssh -W %s:22 -q %s@%s"\'\n' % (h, user, ip, ip, user,
master_ip))
print('-> site.yaml')
if not args.dry_run:
with open('site.yaml', 'w') as f:
f.write('''\
- hosts: all
roles:
- role: certgen
certgen_master: %s
''' % master_hostname)
if component:
component.action('files')
......@@ -184,5 +195,7 @@ if 'wait' in args.actions:
if 'deployment' in args.actions:
print('== deployment ==')
commands = []
commands = [
['ansible-playbook', '-i', 'inventory', './site.yaml']
]
perform_action('deployment', commands)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment