Skip to content

Instantly share code, notes, and snippets.

@chirauki
Last active August 29, 2015 13:57
Show Gist options
  • Save chirauki/9705881 to your computer and use it in GitHub Desktop.
Save chirauki/9705881 to your computer and use it in GitHub Desktop.
Abiquo install using puppet
yum -y install rubygems && gem install puppet --no-ri --no-rdoc
mkdir -p /etc/puppet/modules
sed -i '/alias\ mv/d' ~/.bashrc
sed -i '/alias\ rm/d' ~/.bashrc
cd /etc/puppet/modules && curl -L -s --insecure https://github.com/chirauki/abiquo-abiquo/blob/master/pkg/abiquo-abiquo-0.1.0.tar.gz?raw=true -o abiquo-abiquo-0.1.0.tar.gz
mkdir -p /etc/puppet/modules/abiquo && cd /etc/puppet/modules/abiquo && tar --strip-components=1 -xzf ../abiquo-abiquo-0.1.0.tar.gz
cd /etc/puppet/modules/ && rm *.tar.gz
for i in `grep dependency /etc/puppet/modules/abiquo/Modulefile | cut -d"'" -f2`; do [ -d /etc/puppet/modules/`echo $i | cut -d'/' -f2` ] || puppet module install $i ; done
puppet apply -l ~/puppet.log -e "class{ 'abiquo::api': } class{ 'abiquo::client': } class{ 'abiquo::remoteservice': }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment