diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/installers/joid/pod_config.yaml.j2 | 30 | ||||
-rwxr-xr-x | config/utils/generate_config.py | 2 |
2 files changed, 16 insertions, 16 deletions
diff --git a/config/installers/joid/pod_config.yaml.j2 b/config/installers/joid/pod_config.yaml.j2 index e18ba86f..61604a24 100644 --- a/config/installers/joid/pod_config.yaml.j2 +++ b/config/installers/joid/pod_config.yaml.j2 @@ -31,10 +31,10 @@ lab: spaces: [admin] mac: ["{{ conf['nodes'][0]['interfaces'][2]['mac_address'] }}"] power: - type: {{ conf['jumphost']['remote_params']['type'] }} + type: {{ conf['nodes'][0]['remote_management']['type'] }} address: {{ conf['nodes'][0]['remote_management']['address'] }} - user: {{ conf['jumphost']['remote_params']['user'] }} - pass: {{ conf['jumphost']['remote_params']['pass'] }} + user: {{ conf['nodes'][0]['remote_management']['user'] }} + pass: {{ conf['nodes'][0]['remote_management']['pass'] }} - name: {{ conf['nodes'][1]['name'] }} architecture: {{ conf['nodes'][1]['node']['arch'] }} roles: [compute, control, storage] @@ -55,10 +55,10 @@ lab: spaces: [admin] mac: ["{{ conf['nodes'][1]['interfaces'][2]['mac_address'] }}"] power: - type: {{ conf['jumphost']['remote_params']['type'] }} + type: {{ conf['nodes'][1]['remote_management']['type'] }} address: {{ conf['nodes'][1]['remote_management']['address'] }} - user: {{ conf['jumphost']['remote_params']['user'] }} - pass: {{ conf['jumphost']['remote_params']['pass'] }} + user: {{ conf['nodes'][1]['remote_management']['user'] }} + pass: {{ conf['nodes'][1]['remote_management']['pass'] }} - name: {{ conf['nodes'][2]['name'] }} architecture: {{ conf['nodes'][2]['node']['arch'] }} roles: [compute, control, storage] @@ -77,10 +77,10 @@ lab: mac: ["{{ conf['nodes'][2]['interfaces'][1]['mac_address'] }}"] - ifname: {{ conf['nodes'][2]['interfaces'][2]['name'] }} power: - type: {{ conf['jumphost']['remote_params']['type'] }} + type: {{ conf['nodes'][2]['remote_management']['type'] }} address: {{ conf['nodes'][2]['remote_management']['address'] }} - user: {{ conf['jumphost']['remote_params']['user'] }} - pass: {{ conf['jumphost']['remote_params']['pass'] }} + user: {{ conf['nodes'][2]['remote_management']['user'] }} + pass: {{ conf['nodes'][2]['remote_management']['pass'] }} - name: {{ conf['nodes'][3]['name'] }} architecture: {{ conf['nodes'][3]['node']['arch'] }} roles: [compute, storage] @@ -99,10 +99,10 @@ lab: mac: ["{{ conf['nodes'][3]['interfaces'][1]['mac_address'] }}"] - ifname: {{ conf['nodes'][3]['interfaces'][2]['name'] }} power: - type: ipmi + type: {{ conf['nodes'][3]['remote_management']['type'] }} address: {{ conf['nodes'][3]['remote_management']['address'] }} - user: {{ conf['jumphost']['remote_params']['user'] }} - pass: {{ conf['jumphost']['remote_params']['pass'] }} + user: {{ conf['nodes'][3]['remote_management']['user'] }} + pass: {{ conf['nodes'][3]['remote_management']['pass'] }} - name: {{ conf['nodes'][4]['name'] }} architecture: {{ conf['nodes'][4]['node']['arch'] }} roles: [compute, storage] @@ -121,10 +121,10 @@ lab: mac: ["{{ conf['nodes'][4]['interfaces'][1]['mac_address'] }}"] - ifname: {{ conf['nodes'][1]['interfaces'][2]['name'] }} power: - type: {{ conf['jumphost']['remote_params']['type'] }} + type: {{ conf['nodes'][4]['remote_management']['type'] }} address: {{ conf['nodes'][4]['remote_management']['address'] }} - user: {{ conf['jumphost']['remote_params']['user'] }} - pass: {{ conf['jumphost']['remote_params']['pass'] }} + user: {{ conf['nodes'][4]['remote_management']['user'] }} + pass: {{ conf['nodes'][4]['remote_management']['pass'] }} floating-ip-range: 10.5.15.6,10.5.15.250,10.5.15.1,10.5.15.0/24 ext-port: "ens785f0.505" dns: 8.8.8.8 diff --git a/config/utils/generate_config.py b/config/utils/generate_config.py index 5dbdb7d1..b2b52f0b 100755 --- a/config/utils/generate_config.py +++ b/config/utils/generate_config.py @@ -65,7 +65,7 @@ ENV.filters['dpkg_arch'] = dpkg_arch # Run `eyaml decrypt` on the whole file, but only if PDF data is encrypted # Note: eyaml return code is 0 even if keys are not available try: - if 'ENC[PKCS7' in open(ARGS.yaml).read(): + if os.path.isfile(ARGS.yaml) and 'ENC[PKCS7' in open(ARGS.yaml).read(): DICT = yaml.safe_load(check_output(['eyaml', 'decrypt', '-f', ARGS.yaml])) except CalledProcessError as ex: |