was trying to deal with someone not passing $scenario.


On Oct 15, 2013, at 1:19 PM, Dan Bode <notifications@github.com<mailto:notifications@github.com>> wrote:


In install-scripts/master.sh:

>  bash <(curl -fsS https://raw.github.com/CiscoSystems/openstack-installer/master/install-scripts/setup.sh)
>
>  cp -Rv /root/openstack-installer/modules /etc/puppet/
>  cp -Rv /root/openstack-installer/data /etc/puppet/
>  cp -Rv /root/openstack-installer/manifests /etc/puppet/
>
> -puppet apply /etc/puppet/manifests/site.pp --certname build-server --debug
> +if [ ${scenario} != "2_role" ] ; then


I would prefer this just always write what is specified as the scenario into config.yaml

sed -i "s/2_role:.*/$scenario/" /etc/puppet/data/config.yaml


—
Reply to this email directly or view it on GitHub<https://github.com/CiscoSystems/openstack-installer/pull/155/files#r6983662>.