aboutsummaryrefslogtreecommitdiffstats
path: root/environments/overcloud-steps.yaml
blob: f61cbb6fb9fd45c6788601e391cc218d63ed292a (plain)
1
2
3
4
5
6
7
8
9
10
# Specifies hooks/breakpoints where overcloud deployment should stop
# Allows operator validation between steps, and/or more granular control.
# Note: the wildcards relate to naming convention for some resource suffixes,
# e.g see puppet/*-post.yaml, enabling this will mean we wait for
# a user signal on every *Deployment_StepN resource defined in those files.
resource_registry:
  resources:
    "*NodesPostDeployment":
      "*Deployment_Step*":
          hooks: [pre-create, pre-update]
span class="s1">'host') interfaces = bond.get('bond-slaves') bond_mode = bond['bond-mode'] bond_miimon = bond['bond-miimon'] lacp_rate = bond['bond-lacp_rate'] xmit_hash_policy = bond['bond-xmit_hash_policy'] bond_mtu = bond['mtu'] if interfaces: for host in host_name: for interface in interfaces: exec_cmd("ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ -i %s root@%s \ 'cobbler system edit --name=%s --interface=%s --interface-type=bond_slave --interface-master=%s'" # noqa % (rsa_file, compass_ip, host, interface, bond_name)) # noqa exec_cmd("ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ -i %s root@%s \ 'cobbler system edit --name=%s --interface=%s --interface-type=bond --bonding-opts=\"miimon=%s mode=%s lacp_rate=%s xmit_hash_policy=%s mtu=%s\"'" # noqa % (rsa_file, compass_ip, host, bond_name, bond_miimon, bond_mode, lacp_rate, xmit_hash_policy, bond_mtu)) # noqa if __name__ == "__main__": assert(len(sys.argv) == 4) create_bonding( yaml.load( open( sys.argv[1])), sys.argv[2], sys.argv[3])