Skip to content

Instantly share code, notes, and snippets.

@bobdanilo
Last active September 16, 2015 16:59
Show Gist options
  • Save bobdanilo/23ad70a0c4c9b6f02a68 to your computer and use it in GitHub Desktop.
Save bobdanilo/23ad70a0c4c9b6f02a68 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Run in directory project
echo "Enter OS: "
echo "1) Centos "
echo "2) Ubuntu "
read OS
case $OS in
1)
platform='platform: el-7-x86_64'
box='box: glauco\/openstack-infra-development-centos'
sed -i -e "s/platform.*/${platform}/" spec/acceptance/nodesets/default.yml
sed -i -e "s/box:.*/${box}/" spec/acceptance/nodesets/default.yml
;;
2)
platform='platform: ubuntu-14.04-amd64'
box='box: glauco\/openstack-infra-development-ubuntu'
sed -i -e "s/platform.*/${platform}/" spec/acceptance/nodesets/default.yml
sed -i -e "s/box:.*/${box}/" spec/acceptance/nodesets/default.yml
;;
*) echo "INVALID NUMBER!" ;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment