You need the profile json file:
{
"deployment":
{
"esx.hostname":"10.60.1.63",
"esx.datastore":"ds-ucs-blade-3",
#!/usr/bin/ruby | |
# | |
# Author: Sergio Pena | |
# | |
# yum -y install mysql-devel | |
# gem install mysql | |
# gem install rest-client | |
# gem install logger | |
# gem install xml-simple |
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': }" |
#!/bin/bash | |
if [ -f /usr/bin/puppet ] | |
then | |
echo "Puppet agent already installed. Skipping install" | |
else | |
yum -y localinstall http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm | |
yum -y install puppet | |
[ -d /etc/puppet/modules ] || mkdir -p /etc/puppet/modules | |
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 |
#!/usr/bin/env ruby | |
require 'trollop' | |
require 'json' | |
require 'highline' | |
@opts = Trollop::options do | |
opt :unattended, "Do not ask for permission", :type => :boolean | |
opt :replace, "Replace some word in lang file", :type => :boolean | |
opt :source, "Word to replace", :type => :string | |
opt :target, "Replacement word", :type => :string |
# Cookbook Name:: abiquo | |
# Recipe:: certificate | |
# | |
# Copyright 2014, Abiquo | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
rname = 'test.example.com' | |
key_name = 'challenge-key' | |
key = 'ECNx9woMslMkzn5t+eR8HBLULUGh7GQ2N9N5RumbzOUKudg==' | |
update = Dnsruby::Update.new('example.com') | |
update.absent('foo.example.com.', 'A') | |
update.add('foo.example.com.', 'A', 86400, '10.1.2.3') | |
res.tsig=key_name,key | |
res.send_message(update) |
require 'uri' | |
VAGRANTFILE_API_VERSION = "2" | |
# Define env name | |
unless ENV['ENV_NAME'] | |
puts <<EOF | |
You have to specify an environment name using the ENV_NAME variable. | |
Eg. ENV_NAME=someenv vagrant up |
#!/usr/bin/env python | |
import logging | |
import argparse | |
import libvirt | |
import sys | |
import os | |
import subprocess | |
import paramiko | |
import xml.etree.ElementTree as ET | |
from urlparse import urlparse |