kameleon-builder 2.2.5 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.rst +21 -0
- data/{templates → contrib}/steps/bootstrap/debian/debootstrap_arm.yaml +1 -1
- data/{templates → contrib}/steps/export/clean_appliance.yaml +0 -0
- data/{templates → contrib}/steps/export/compact_qcow_img.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/configure_ruby.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/install_dev_tools.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/install_gnome.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/install_yaourt.yaml +0 -0
- data/{templates → contrib}/steps/setup/centos/6.5/configure_repo.yaml +0 -0
- data/{templates → contrib}/steps/setup/debian/install_gnome.yaml +0 -0
- data/{templates → contrib}/steps/setup/debian/install_kde.yaml +0 -0
- data/{templates → erb}/extend.erb +2 -2
- data/erb/userconf.erb +5 -0
- data/kameleon-builder.gemspec +6 -1
- data/lib/kameleon.rb +53 -3
- data/lib/kameleon/cli.rb +146 -99
- data/lib/kameleon/engine.rb +20 -8
- data/lib/kameleon/environment.rb +11 -10
- data/lib/kameleon/persistent_cache.rb +1 -9
- data/lib/kameleon/recipe.rb +52 -24
- data/lib/kameleon/repository.rb +46 -0
- data/lib/kameleon/utils.rb +49 -0
- data/{templates → tests/recipes}/steps/aliases/defaults.yaml +0 -0
- data/tests/recipes/steps/bootstrap/linux/bootstrap.yaml +2 -0
- data/tests/recipes/steps/checkpoints/test.yaml +14 -0
- data/tests/recipes/steps/enable_something.yaml +2 -0
- data/tests/recipes/steps/export/save_appliance.yaml +10 -0
- data/tests/recipes/steps/setup/linux/software_install.yaml +7 -0
- data/tests/recipes/test_recipe.yaml +41 -0
- data/version.txt +1 -1
- metadata +34 -139
- data/templates/COPYRIGHT +0 -21
- data/templates/chroot/debian7-amd64.yaml +0 -119
- data/templates/docker/debian7.yaml +0 -107
- data/templates/grid5000/debian7.yaml +0 -97
- data/templates/qemu/archlinux-desktop-i686.yaml +0 -25
- data/templates/qemu/archlinux-desktop-x86_64.yaml +0 -25
- data/templates/qemu/archlinux-i686.yaml +0 -25
- data/templates/qemu/archlinux-x86_64.yaml +0 -109
- data/templates/qemu/centos6.5-x86_64.yaml +0 -122
- data/templates/qemu/centos7-x86_64.yaml +0 -122
- data/templates/qemu/debian7-amd64.yaml +0 -134
- data/templates/qemu/debian7-desktop-amd64.yaml +0 -24
- data/templates/qemu/debian7-kameleon-amd64.yaml +0 -40
- data/templates/qemu/debian7-oar-amd64.yaml +0 -51
- data/templates/qemu/debian8-amd64.yaml +0 -25
- data/templates/qemu/fedora20-desktop-x86_64.yaml +0 -21
- data/templates/qemu/fedora20-x86_64.yaml +0 -119
- data/templates/qemu/ubuntu-12.04-amd64.yaml +0 -132
- data/templates/qemu/ubuntu-12.04-desktop-amd64.yaml +0 -25
- data/templates/qemu/ubuntu-14.04-amd64.yaml +0 -25
- data/templates/qemu/ubuntu-14.04-desktop-amd64.yaml +0 -27
- data/templates/steps/bootstrap/archlinux/arch_bootstrap.yaml +0 -211
- data/templates/steps/bootstrap/centos/6.5/yum_bootstrap.yaml +0 -67
- data/templates/steps/bootstrap/debian/debootstrap.yaml +0 -20
- data/templates/steps/bootstrap/fedora/init_pxeboot.yaml +0 -13
- data/templates/steps/bootstrap/fedora/yum_bootstrap.yaml +0 -45
- data/templates/steps/bootstrap/g5k_reserv.yaml +0 -70
- data/templates/steps/bootstrap/initialize_disk.yaml +0 -16
- data/templates/steps/bootstrap/initialize_disk_chroot.yaml +0 -80
- data/templates/steps/bootstrap/install_requirements.yaml +0 -3
- data/templates/steps/bootstrap/prepare_chroot.yaml +0 -126
- data/templates/steps/bootstrap/prepare_docker.yaml +0 -51
- data/templates/steps/bootstrap/prepare_qemu.yaml +0 -41
- data/templates/steps/bootstrap/prepare_virtualbox.yaml +0 -67
- data/templates/steps/bootstrap/start_chroot.yaml +0 -51
- data/templates/steps/bootstrap/start_docker.yaml +0 -16
- data/templates/steps/bootstrap/start_qemu.yaml +0 -74
- data/templates/steps/bootstrap/start_virtualbox.yaml +0 -38
- data/templates/steps/bootstrap/switch_context_qemu.yaml +0 -84
- data/templates/steps/bootstrap/switch_context_virtualbox.yaml +0 -86
- data/templates/steps/breakpoint.yaml +0 -3
- data/templates/steps/checkpoints/docker.yaml +0 -17
- data/templates/steps/checkpoints/qcow2.yaml +0 -40
- data/templates/steps/checkpoints/qemu.yaml +0 -33
- data/templates/steps/checkpoints/virtualbox.yaml +0 -21
- data/templates/steps/disable_checkpoint.yaml +0 -3
- data/templates/steps/enable_checkpoint.yaml +0 -5
- data/templates/steps/export/qemu_save_appliance.yaml +0 -52
- data/templates/steps/export/save_appliance_from_g5k.yaml +0 -47
- data/templates/steps/export/vagrant_save_appliance.yaml +0 -14
- data/templates/steps/export/virtualbox_save_appliance.yaml +0 -61
- data/templates/steps/setup/archlinux/configure_keyboard.yaml +0 -9
- data/templates/steps/setup/archlinux/configure_network.yaml +0 -9
- data/templates/steps/setup/archlinux/configure_system.yaml +0 -20
- data/templates/steps/setup/archlinux/install_bootloader.yaml +0 -23
- data/templates/steps/setup/archlinux/install_software.yaml +0 -9
- data/templates/steps/setup/autologin.yaml +0 -16
- data/templates/steps/setup/centos/6.5/configure_network.yaml +0 -33
- data/templates/steps/setup/centos/6.5/configure_system.yaml +0 -46
- data/templates/steps/setup/centos/6.5/minimal_install.yaml +0 -3
- data/templates/steps/setup/centos/6.5/setup_vagrant_box.yaml +0 -77
- data/templates/steps/setup/create_group.yaml +0 -12
- data/templates/steps/setup/create_user.yaml +0 -11
- data/templates/steps/setup/debian/configure_apt.yaml +0 -73
- data/templates/steps/setup/debian/configure_kernel.yaml +0 -13
- data/templates/steps/setup/debian/configure_keyboard.yaml +0 -10
- data/templates/steps/setup/debian/configure_network.yaml +0 -30
- data/templates/steps/setup/debian/configure_system.yaml +0 -12
- data/templates/steps/setup/debian/install_bootloader.yaml +0 -36
- data/templates/steps/setup/debian/install_software.yaml +0 -2
- data/templates/steps/setup/debian/oar/oar_debian_config_frontend.yaml +0 -8
- data/templates/steps/setup/debian/oar/oar_debian_config_node.yaml +0 -5
- data/templates/steps/setup/debian/oar/oar_debian_config_server.yaml +0 -5
- data/templates/steps/setup/debian/oar/oar_prereq_install.yaml +0 -16
- data/templates/steps/setup/debian/setup_vagrant_box.yaml +0 -80
- data/templates/steps/setup/debian/upgrade_system.yaml +0 -10
- data/templates/steps/setup/fedora/configure_kernel.yaml +0 -9
- data/templates/steps/setup/fedora/configure_keyboard.yaml +0 -12
- data/templates/steps/setup/fedora/configure_network.yaml +0 -38
- data/templates/steps/setup/fedora/configure_system.yaml +0 -52
- data/templates/steps/setup/fedora/install_bootloader.yaml +0 -53
- data/templates/steps/setup/fedora/install_software.yaml +0 -3
- data/templates/steps/setup/fedora/minimal_install.yaml +0 -3
- data/templates/steps/setup/fedora/update_system.yaml +0 -16
- data/templates/steps/setup/oar/oar_config_devel.yaml +0 -21
- data/templates/steps/setup/oar/oar_config_frontend.yaml +0 -38
- data/templates/steps/setup/oar/oar_config_node.yaml +0 -4
- data/templates/steps/setup/oar/oar_config_server.yaml +0 -25
- data/templates/steps/setup/oar/oar_config_system.yaml +0 -34
- data/templates/steps/setup/oar/oar_devel_prereq_install.yaml +0 -5
- data/templates/steps/setup/oar/oar_git_install.yaml +0 -21
- data/templates/steps/setup/ubuntu/configure_apt.yaml +0 -62
- data/templates/virtualbox/archlinux-desktop-i686.yaml +0 -25
- data/templates/virtualbox/archlinux-desktop-x86_64.yaml +0 -28
- data/templates/virtualbox/archlinux-i686.yaml +0 -28
- data/templates/virtualbox/archlinux-x86_64.yaml +0 -108
- data/templates/virtualbox/centos6.5-i386.yaml +0 -39
- data/templates/virtualbox/centos6.5-vagrant-x86_64.yaml +0 -33
- data/templates/virtualbox/centos6.5-x86_64.yaml +0 -121
- data/templates/virtualbox/centos7-x86_64.yaml +0 -118
- data/templates/virtualbox/debian7-amd64.yaml +0 -128
- data/templates/virtualbox/debian7-desktop-amd64.yaml +0 -25
- data/templates/virtualbox/debian7-i386.yaml +0 -31
- data/templates/virtualbox/debian7-kameleon-amd64.yaml +0 -38
- data/templates/virtualbox/debian7-oar-amd64.yaml +0 -51
- data/templates/virtualbox/debian7-vagrant-amd64.yaml +0 -32
- data/templates/virtualbox/debian8-amd64.yaml +0 -25
- data/templates/virtualbox/debian8-i386.yaml +0 -31
- data/templates/virtualbox/fedora20-x86_64.yaml +0 -118
- data/templates/virtualbox/ubuntu-12.04-amd64.yaml +0 -128
- data/templates/virtualbox/ubuntu-12.04-desktop-amd64.yaml +0 -25
- data/templates/virtualbox/ubuntu-14.04-amd64.yaml +0 -25
- data/templates/virtualbox/ubuntu-14.04-desktop-amd64.yaml +0 -27
- data/tests/recipes/dummy_recipe.yaml +0 -48
- data/tests/recipes/steps/bootstrap/dummy_distro/dummy_bootstrap_static.yaml +0 -4
- data/tests/recipes/steps/export/dummy_save_appliance.yaml +0 -9
- data/tests/recipes/steps/setup/default/dummy_root_passwd.yaml +0 -8
- data/tests/recipes/steps/setup/dummy_distro/dummy_software_install.yaml +0 -7
@@ -1,77 +0,0 @@
|
|
1
|
-
- enable_passwordless_sudo:
|
2
|
-
- exec_in: |
|
3
|
-
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
4
|
-
echo "$$user_name ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
5
|
-
|
6
|
-
- set_root_password:
|
7
|
-
- exec_in: echo -n 'root:$$user_name' | chpasswd
|
8
|
-
|
9
|
-
- install_vbox_guest_additions:
|
10
|
-
- exec_in: echo "VirtualBox Guest Additions..."
|
11
|
-
- exec_in: |
|
12
|
-
wget --progress=bar:force http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_4.3.8.iso 2>&1
|
13
|
-
- exec_in: mkdir /media/VBoxGuestAdditions
|
14
|
-
- exec_in: mount -o loop VBoxGuestAdditions_4.3.8.iso /media/VBoxGuestAdditions
|
15
|
-
- exec_in: yes|sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run --nox11 || true 2>&1
|
16
|
-
- exec_in: rm -f VBoxGuestAdditions_4.3.8.iso
|
17
|
-
- exec_in: umount /media/VBoxGuestAdditions
|
18
|
-
- exec_in: rmdir /media/VBoxGuestAdditions
|
19
|
-
|
20
|
-
- install_puppet:
|
21
|
-
- exec_in:
|
22
|
-
- write_in:
|
23
|
-
- /etc/yum.repos.d/puppetlabs.repo
|
24
|
-
- |
|
25
|
-
[puppetlabs-dependencies]
|
26
|
-
name=puppetlabdsdependencies
|
27
|
-
baseurl=http://yum.puppetlabs.com/el/6/dependencies/\$basearch
|
28
|
-
enabled=1
|
29
|
-
gpgcheck=0
|
30
|
-
[puppetlabs]
|
31
|
-
name=puppetlabs
|
32
|
-
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
33
|
-
enabled=1
|
34
|
-
gpgcheck=0
|
35
|
-
- exec_in: echo "Installing puppet..."
|
36
|
-
- exec_in: yum -y install puppet facter ruby-shadow 2>&1
|
37
|
-
|
38
|
-
- install_chef:
|
39
|
-
- exec_in: curl -L https://www.opscode.com/chef/install.sh -k | bash
|
40
|
-
|
41
|
-
- copy_insecure_sshkey:
|
42
|
-
- exec_in: mkdir -pm 700 /home/$$user_name/.ssh/
|
43
|
-
- exec_in: |
|
44
|
-
wget --progress=bar:force https://raw.github.com/mitchellh/vagrant/master/keys/vagrant -O /home/$$user_name/.ssh/id_rsa 2>&1
|
45
|
-
wget --progress=bar:force https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/$$user_name/.ssh/id_rsa.pub 2>&1
|
46
|
-
- exec_in: cp /home/$$user_name/.ssh/id_rsa.pub /home/$$user_name/.ssh/authorized_keys
|
47
|
-
- exec_in: chmod 0600 /home/$$user_name/.ssh/*
|
48
|
-
|
49
|
-
- config_ssh:
|
50
|
-
- exec_in: echo "UseDNS no" >> /etc/ssh/sshd_config
|
51
|
-
- write_in:
|
52
|
-
- /home/$$user_name/.ssh/config
|
53
|
-
- |
|
54
|
-
Host *
|
55
|
-
ForwardX11 no
|
56
|
-
StrictHostKeyChecking no
|
57
|
-
PasswordAuthentication no
|
58
|
-
AddressFamily inet
|
59
|
-
- exec_in: chmod 0600 /home/$$user_name/.ssh/config
|
60
|
-
- exec_in: rsync -ah /home/$$user_name/.ssh/ /root/.ssh/
|
61
|
-
- exec_in: chown "$$user_name:$$user_name" -R /home/$$user_name
|
62
|
-
|
63
|
-
- customize_motd:
|
64
|
-
- exec_in: echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
|
65
|
-
|
66
|
-
- cleanup:
|
67
|
-
- exec_in: rm -rf /tmp/* || true
|
68
|
-
- exec_in: rm -rf /var/tmp/* || true
|
69
|
-
- exec_in: echo "Remove traces of mac address from network configuration"
|
70
|
-
- exec_in: sed -i /HWADDR/d /etc/sysconfig/network-scripts/ifcfg-eth0
|
71
|
-
- exec_in: rm -f /etc/udev/rules.d/70-persistent-net.rules
|
72
|
-
|
73
|
-
- nullify_freespace:
|
74
|
-
- exec_in: |
|
75
|
-
echo "Nullify freespace..."
|
76
|
-
dd if=/dev/zero of=/bigemptyfile bs=1M 2>&1 >/dev/null || true
|
77
|
-
rm -f /bigemptyfile
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# Software Install
|
2
|
-
- enable_contrib: true
|
3
|
-
- enable_nonfree: true
|
4
|
-
|
5
|
-
|
6
|
-
- configure_apt_to_use_less_disk_space:
|
7
|
-
- write_in:
|
8
|
-
- /etc/apt/apt.conf.d/02compress_indexes
|
9
|
-
- |
|
10
|
-
Acquire::GzipIndexes "true";
|
11
|
-
Acquire::CompressionTypes::Order:: "gz";
|
12
|
-
- write_in:
|
13
|
-
- /etc/apt/apt.conf.d/02nocache
|
14
|
-
- |
|
15
|
-
Dir::Cache {
|
16
|
-
srcpkgcache "";
|
17
|
-
pkgcache "";
|
18
|
-
}
|
19
|
-
- write_in:
|
20
|
-
- /etc/dpkg/dpkg.cfg.d/01_nodoc
|
21
|
-
- |
|
22
|
-
path-exclude /usr/share/doc/*
|
23
|
-
# we need to keep copyright files for legal reasons
|
24
|
-
path-include /usr/share/doc/*/copyright
|
25
|
-
path-exclude /usr/share/man/*
|
26
|
-
path-exclude /usr/share/groff/*
|
27
|
-
path-exclude /usr/share/info/*
|
28
|
-
# lintian stuff is small, but really unnecessary
|
29
|
-
path-exclude /usr/share/lintian/*
|
30
|
-
path-exclude /usr/share/linda/*
|
31
|
-
path-exclude /usr/share/locale/*
|
32
|
-
path-include /usr/share/locale/en*
|
33
|
-
- write_in:
|
34
|
-
- /etc/locale.nopurge
|
35
|
-
- |
|
36
|
-
MANDELETE
|
37
|
-
DONTBOTHERNEWLOCALE
|
38
|
-
SHOWFREEDSPACE
|
39
|
-
#QUICKNDIRTYCALC
|
40
|
-
#VERBOSE
|
41
|
-
|
42
|
-
- configure_source_list:
|
43
|
-
- write_in:
|
44
|
-
- /etc/apt/sources.list
|
45
|
-
- |
|
46
|
-
deb $$apt_repository $${release} main
|
47
|
-
deb-src $$apt_repository $${release} main
|
48
|
-
|
49
|
-
deb $$apt_repository $${release}-backports main
|
50
|
-
deb-src $$apt_repository $${release}-backports main
|
51
|
-
|
52
|
-
deb http://security.debian.org/ $${release}/updates main
|
53
|
-
deb-src http://security.debian.org/ $${release}/updates main
|
54
|
-
|
55
|
-
- add_contribs_and_nonfree_sources:
|
56
|
-
- exec_in: |
|
57
|
-
if [ $$enable_contrib = true ]; then
|
58
|
-
REPO_CONTRIB="contrib"
|
59
|
-
fi
|
60
|
-
- exec_in: |
|
61
|
-
if [ $$enable_nonfree = true ]; then
|
62
|
-
REPO_NONFREE="non-free"
|
63
|
-
fi
|
64
|
-
- exec_in: perl -pi -e "s/main$/main $REPO_CONTRIB $REPO_NONFREE/" /etc/apt/sources.list
|
65
|
-
|
66
|
-
- update_repositories:
|
67
|
-
- exec_in: apt-get -y --force-yes update
|
68
|
-
- exec_in: apt-get -y --force-yes install localepurge
|
69
|
-
- on_setup_clean:
|
70
|
-
- exec_in: apt-get -y --force-yes autoclean
|
71
|
-
- exec_in: apt-get -y --force-yes clean
|
72
|
-
- exec_in: apt-get -y --force-yes autoremove
|
73
|
-
- exec_in: localepurge
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# # Network Config
|
2
|
-
|
3
|
-
# WARNING: The MTU is set to 1492 to avoid connection failure over some
|
4
|
-
# network du to PPP header
|
5
|
-
- mtu: 1492
|
6
|
-
- network_interfaces:
|
7
|
-
- write_in:
|
8
|
-
- /etc/network/interfaces
|
9
|
-
- |
|
10
|
-
auto lo
|
11
|
-
iface lo inet loopback
|
12
|
-
|
13
|
-
auto eth0
|
14
|
-
iface eth0 inet dhcp
|
15
|
-
pre-up ip link set mtu $$mtu eth0
|
16
|
-
|
17
|
-
- set_hosts:
|
18
|
-
- write_in:
|
19
|
-
- /etc/hosts
|
20
|
-
- |
|
21
|
-
#
|
22
|
-
# /etc/hosts: static lookup table for host names
|
23
|
-
#
|
24
|
-
|
25
|
-
#<ip-address> <hostname.domain.org> <hostname>
|
26
|
-
127.0.0.1 localhost.localdomain localhost $$hostname
|
27
|
-
::1 localhost.localdomain localhost
|
28
|
-
|
29
|
-
- set_hostname:
|
30
|
-
- exec_in: echo "$$hostname" > /etc/hostname
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# # System Config
|
2
|
-
- configure_locales:
|
3
|
-
# set locales programtically, based on http://linux.livejournal.com/1880366.html
|
4
|
-
- exec_in: |
|
5
|
-
test ! -f /etc/locale.gen || \
|
6
|
-
(echo $$locales | tr ' ' '\n' | xargs -I {} sed -i 's/^# {}/{}/' /etc/locale.gen)
|
7
|
-
- exec_in: locale-gen $$lang
|
8
|
-
- exec_in: update-locale LANG=$$lang
|
9
|
-
|
10
|
-
- set_timezone:
|
11
|
-
- exec_in: echo "$$timezone" > /etc/timezone
|
12
|
-
- exec_in: "dpkg-reconfigure -f noninteractive tzdata 2>&1"
|
@@ -1,36 +0,0 @@
|
|
1
|
-
- install_extlinux:
|
2
|
-
- check_cmd_in: extlinux
|
3
|
-
- exec_in: DISTRIB_TITLE="$$kameleon_recipe_name"
|
4
|
-
- exec_in: extlinux --install /boot/extlinux 2>&1
|
5
|
-
- exec_in: |
|
6
|
-
MBR_PATH=
|
7
|
-
PATHS=("/usr/share/syslinux/mbr.bin"
|
8
|
-
"/usr/lib/bios/syslinux/mbr.bin"
|
9
|
-
"/usr/lib/syslinux/bios/mbr.bin"
|
10
|
-
"/usr/lib/extlinux/mbr.bin"
|
11
|
-
"/usr/lib/syslinux/mbr.bin")
|
12
|
-
for element in "${PATHS[@]}"
|
13
|
-
do
|
14
|
-
if [ -f "$element" ]; then
|
15
|
-
MBR_PATH="$element"
|
16
|
-
break
|
17
|
-
fi
|
18
|
-
done
|
19
|
-
if [ "$MBR_PATH" == "" ]; then
|
20
|
-
fail "unable to locate the extlinux mbr"
|
21
|
-
else
|
22
|
-
dd if="$MBR_PATH" of="$(__find_linux_boot_device | sed 's/[0-9]*//g')" bs=440 2>&1
|
23
|
-
fi
|
24
|
-
- write_in:
|
25
|
-
- /boot/extlinux/extlinux.conf
|
26
|
-
- |
|
27
|
-
default ${DISTRIB_TITLE^}
|
28
|
-
timeout 1
|
29
|
-
|
30
|
-
label ${DISTRIB_TITLE^}
|
31
|
-
kernel ../`basename /boot/vmlinuz*`
|
32
|
-
initrd ../`basename /boot/init*`
|
33
|
-
# the net.ifnames option is disable to get default net interface
|
34
|
-
# names according to this page:
|
35
|
-
# https://wiki.archlinux.org/index.php/Network_Configuration#Device_names
|
36
|
-
append root=UUID=`blkid -s UUID -o value $(__find_linux_boot_device)` rw net.ifnames=0
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# OAR prereq install
|
2
|
-
- packages: >
|
3
|
-
vim less bzip2 openssh-server rsync gnupg locales debian-keyring ruby1.8
|
4
|
-
libyaml-perl libjson-perl libdbi-perl taktuk oidentd console-tools
|
5
|
-
mingetty curl git-core make python-docutils
|
6
|
-
libjson-perl libwww-perl ntp libgd-ruby1.8 perl libdbi-perl
|
7
|
-
libtie-ixhash-perl libappconfig-perl libsort-naturally-perl
|
8
|
-
libsort-versions-perl openjdk-6-jre libcgi-fast-perl
|
9
|
-
libpostgresql-ocaml libpostgresql-ocaml-dev ocaml-findlib ocaml-nox
|
10
|
-
libounit-ocaml-dev librestclient-ruby1.8 librspec-ruby1.8 postgresql
|
11
|
-
libdbd-pg-ruby1.8 libpostgresql-ocaml-dev libdbd-pg-ruby1.8 rubygems1.8
|
12
|
-
libmysql-ocaml-dev libdbd-pg-perl libjson-ruby1.8 ruby-switch
|
13
|
-
- req_packages:
|
14
|
-
- exec_in: apt-get -y --force-yes install $$packages
|
15
|
-
- switch_to_ruby_18:
|
16
|
-
- exec_in: ruby-switch --set ruby1.8
|
@@ -1,80 +0,0 @@
|
|
1
|
-
- enable_passwordless_sudo:
|
2
|
-
- exec_in: |
|
3
|
-
sed -i.bkp -e \
|
4
|
-
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \
|
5
|
-
/etc/sudoers
|
6
|
-
|
7
|
-
- set_root_password:
|
8
|
-
- exec_in: echo -n 'root:$$user_name' | chpasswd
|
9
|
-
|
10
|
-
- install_vbox_guest_additions:
|
11
|
-
- exec_in: echo "VirtualBox Guest Additions..."
|
12
|
-
- download_file_in:
|
13
|
-
- "http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_4.3.8.iso"
|
14
|
-
- VBoxGuestAdditions_4.3.8.iso
|
15
|
-
- exec_in: mkdir /media/VBoxGuestAdditions
|
16
|
-
- exec_in: mount -o loop VBoxGuestAdditions_4.3.8.iso /media/VBoxGuestAdditions
|
17
|
-
- exec_in: yes|sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run --nox11 || true 2>&1
|
18
|
-
- exec_in: rm -f VBoxGuestAdditions_4.3.8.iso
|
19
|
-
- exec_in: umount /media/VBoxGuestAdditions
|
20
|
-
- exec_in: rmdir /media/VBoxGuestAdditions
|
21
|
-
|
22
|
-
- install_puppet:
|
23
|
-
- exec_in: |
|
24
|
-
wget --progress=bar:force http://apt.puppetlabs.com/puppetlabs-release-stable.deb 2>&1
|
25
|
-
dpkg -i puppetlabs-release-stable.deb
|
26
|
-
apt-get update
|
27
|
-
apt-get install puppet -y --force-yes
|
28
|
-
rm -f puppetlabs-release-stable.deb
|
29
|
-
|
30
|
-
- install_chef:
|
31
|
-
- exec_in: curl -L https://www.opscode.com/chef/install.sh -k | bash
|
32
|
-
|
33
|
-
- copy_insecure_sshkey:
|
34
|
-
- exec_in: mkdir -pm 700 /home/$$user_name/.ssh/
|
35
|
-
- download_file_in:
|
36
|
-
- "https://raw.github.com/mitchellh/vagrant/master/keys/vagrant"
|
37
|
-
- /home/$$user_name/.ssh/id_rsa
|
38
|
-
- download_file_in:
|
39
|
-
- "https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub"
|
40
|
-
- /home/$$user_name/.ssh/id_rsa.pub
|
41
|
-
- exec_in: cp /home/$$user_name/.ssh/id_rsa.pub /home/$$user_name/.ssh/authorized_keys
|
42
|
-
- exec_in: chmod 0600 /home/$$user_name/.ssh/*
|
43
|
-
|
44
|
-
- config_ssh:
|
45
|
-
- exec_in: echo "UseDNS no" >> /etc/ssh/sshd_config
|
46
|
-
- write_in:
|
47
|
-
- /home/$$user_name/.ssh/config
|
48
|
-
- |
|
49
|
-
Host *
|
50
|
-
ForwardX11 no
|
51
|
-
StrictHostKeyChecking no
|
52
|
-
PasswordAuthentication no
|
53
|
-
AddressFamily inet
|
54
|
-
- exec_in: chmod 0600 /home/$$user_name/.ssh/config
|
55
|
-
- exec_in: rsync -ah /home/$$user_name/.ssh/ /root/.ssh/
|
56
|
-
- exec_in: chown "$$user_name:$$user_name" -R /home/$$user_name
|
57
|
-
|
58
|
-
- customize_motd:
|
59
|
-
- exec_in: echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
|
60
|
-
|
61
|
-
- cleanup:
|
62
|
-
- exec_in: rm -rf /tmp/* || true
|
63
|
-
- exec_in: rm -rf /var/tmp/* || true
|
64
|
-
- exec_in: apt-get -y remove linux-headers-$(uname -r) build-essential
|
65
|
-
- exec_in: echo "cleaning up dhcp leases"
|
66
|
-
- exec_in: rm -f /var/lib/dhcp/*
|
67
|
-
- exec_in: echo "cleaning up udev rules"
|
68
|
-
- exec_in: rm -f /etc/udev/rules.d/70-persistent-net.rules
|
69
|
-
- exec_in: mkdir /etc/udev/rules.d/70-persistent-net.rules
|
70
|
-
- exec_in: rm -rf /dev/.udev/
|
71
|
-
- exec_in: rm -f /lib/udev/rules.d/75-persistent-net-generator.rules
|
72
|
-
- exec_in: |
|
73
|
-
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
74
|
-
echo "pre-up sleep 2" >> /etc/network/interfaces
|
75
|
-
|
76
|
-
- nullify_freespace:
|
77
|
-
- exec_in: |
|
78
|
-
echo "Nullify freespace..."
|
79
|
-
dd if=/dev/zero of=/bigemptyfile bs=1M 2>&1 >/dev/null || true
|
80
|
-
rm -f /bigemptyfile
|