kameleon-builder 2.2.5 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.rst +21 -0
  4. data/{templates → contrib}/steps/bootstrap/debian/debootstrap_arm.yaml +1 -1
  5. data/{templates → contrib}/steps/export/clean_appliance.yaml +0 -0
  6. data/{templates → contrib}/steps/export/compact_qcow_img.yaml +0 -0
  7. data/{templates → contrib}/steps/setup/archlinux/configure_ruby.yaml +0 -0
  8. data/{templates → contrib}/steps/setup/archlinux/install_dev_tools.yaml +0 -0
  9. data/{templates → contrib}/steps/setup/archlinux/install_gnome.yaml +0 -0
  10. data/{templates → contrib}/steps/setup/archlinux/install_yaourt.yaml +0 -0
  11. data/{templates → contrib}/steps/setup/centos/6.5/configure_repo.yaml +0 -0
  12. data/{templates → contrib}/steps/setup/debian/install_gnome.yaml +0 -0
  13. data/{templates → contrib}/steps/setup/debian/install_kde.yaml +0 -0
  14. data/{templates → erb}/extend.erb +2 -2
  15. data/erb/userconf.erb +5 -0
  16. data/kameleon-builder.gemspec +6 -1
  17. data/lib/kameleon.rb +53 -3
  18. data/lib/kameleon/cli.rb +146 -99
  19. data/lib/kameleon/engine.rb +20 -8
  20. data/lib/kameleon/environment.rb +11 -10
  21. data/lib/kameleon/persistent_cache.rb +1 -9
  22. data/lib/kameleon/recipe.rb +52 -24
  23. data/lib/kameleon/repository.rb +46 -0
  24. data/lib/kameleon/utils.rb +49 -0
  25. data/{templates → tests/recipes}/steps/aliases/defaults.yaml +0 -0
  26. data/tests/recipes/steps/bootstrap/linux/bootstrap.yaml +2 -0
  27. data/tests/recipes/steps/checkpoints/test.yaml +14 -0
  28. data/tests/recipes/steps/enable_something.yaml +2 -0
  29. data/tests/recipes/steps/export/save_appliance.yaml +10 -0
  30. data/tests/recipes/steps/setup/linux/software_install.yaml +7 -0
  31. data/tests/recipes/test_recipe.yaml +41 -0
  32. data/version.txt +1 -1
  33. metadata +34 -139
  34. data/templates/COPYRIGHT +0 -21
  35. data/templates/chroot/debian7-amd64.yaml +0 -119
  36. data/templates/docker/debian7.yaml +0 -107
  37. data/templates/grid5000/debian7.yaml +0 -97
  38. data/templates/qemu/archlinux-desktop-i686.yaml +0 -25
  39. data/templates/qemu/archlinux-desktop-x86_64.yaml +0 -25
  40. data/templates/qemu/archlinux-i686.yaml +0 -25
  41. data/templates/qemu/archlinux-x86_64.yaml +0 -109
  42. data/templates/qemu/centos6.5-x86_64.yaml +0 -122
  43. data/templates/qemu/centos7-x86_64.yaml +0 -122
  44. data/templates/qemu/debian7-amd64.yaml +0 -134
  45. data/templates/qemu/debian7-desktop-amd64.yaml +0 -24
  46. data/templates/qemu/debian7-kameleon-amd64.yaml +0 -40
  47. data/templates/qemu/debian7-oar-amd64.yaml +0 -51
  48. data/templates/qemu/debian8-amd64.yaml +0 -25
  49. data/templates/qemu/fedora20-desktop-x86_64.yaml +0 -21
  50. data/templates/qemu/fedora20-x86_64.yaml +0 -119
  51. data/templates/qemu/ubuntu-12.04-amd64.yaml +0 -132
  52. data/templates/qemu/ubuntu-12.04-desktop-amd64.yaml +0 -25
  53. data/templates/qemu/ubuntu-14.04-amd64.yaml +0 -25
  54. data/templates/qemu/ubuntu-14.04-desktop-amd64.yaml +0 -27
  55. data/templates/steps/bootstrap/archlinux/arch_bootstrap.yaml +0 -211
  56. data/templates/steps/bootstrap/centos/6.5/yum_bootstrap.yaml +0 -67
  57. data/templates/steps/bootstrap/debian/debootstrap.yaml +0 -20
  58. data/templates/steps/bootstrap/fedora/init_pxeboot.yaml +0 -13
  59. data/templates/steps/bootstrap/fedora/yum_bootstrap.yaml +0 -45
  60. data/templates/steps/bootstrap/g5k_reserv.yaml +0 -70
  61. data/templates/steps/bootstrap/initialize_disk.yaml +0 -16
  62. data/templates/steps/bootstrap/initialize_disk_chroot.yaml +0 -80
  63. data/templates/steps/bootstrap/install_requirements.yaml +0 -3
  64. data/templates/steps/bootstrap/prepare_chroot.yaml +0 -126
  65. data/templates/steps/bootstrap/prepare_docker.yaml +0 -51
  66. data/templates/steps/bootstrap/prepare_qemu.yaml +0 -41
  67. data/templates/steps/bootstrap/prepare_virtualbox.yaml +0 -67
  68. data/templates/steps/bootstrap/start_chroot.yaml +0 -51
  69. data/templates/steps/bootstrap/start_docker.yaml +0 -16
  70. data/templates/steps/bootstrap/start_qemu.yaml +0 -74
  71. data/templates/steps/bootstrap/start_virtualbox.yaml +0 -38
  72. data/templates/steps/bootstrap/switch_context_qemu.yaml +0 -84
  73. data/templates/steps/bootstrap/switch_context_virtualbox.yaml +0 -86
  74. data/templates/steps/breakpoint.yaml +0 -3
  75. data/templates/steps/checkpoints/docker.yaml +0 -17
  76. data/templates/steps/checkpoints/qcow2.yaml +0 -40
  77. data/templates/steps/checkpoints/qemu.yaml +0 -33
  78. data/templates/steps/checkpoints/virtualbox.yaml +0 -21
  79. data/templates/steps/disable_checkpoint.yaml +0 -3
  80. data/templates/steps/enable_checkpoint.yaml +0 -5
  81. data/templates/steps/export/qemu_save_appliance.yaml +0 -52
  82. data/templates/steps/export/save_appliance_from_g5k.yaml +0 -47
  83. data/templates/steps/export/vagrant_save_appliance.yaml +0 -14
  84. data/templates/steps/export/virtualbox_save_appliance.yaml +0 -61
  85. data/templates/steps/setup/archlinux/configure_keyboard.yaml +0 -9
  86. data/templates/steps/setup/archlinux/configure_network.yaml +0 -9
  87. data/templates/steps/setup/archlinux/configure_system.yaml +0 -20
  88. data/templates/steps/setup/archlinux/install_bootloader.yaml +0 -23
  89. data/templates/steps/setup/archlinux/install_software.yaml +0 -9
  90. data/templates/steps/setup/autologin.yaml +0 -16
  91. data/templates/steps/setup/centos/6.5/configure_network.yaml +0 -33
  92. data/templates/steps/setup/centos/6.5/configure_system.yaml +0 -46
  93. data/templates/steps/setup/centos/6.5/minimal_install.yaml +0 -3
  94. data/templates/steps/setup/centos/6.5/setup_vagrant_box.yaml +0 -77
  95. data/templates/steps/setup/create_group.yaml +0 -12
  96. data/templates/steps/setup/create_user.yaml +0 -11
  97. data/templates/steps/setup/debian/configure_apt.yaml +0 -73
  98. data/templates/steps/setup/debian/configure_kernel.yaml +0 -13
  99. data/templates/steps/setup/debian/configure_keyboard.yaml +0 -10
  100. data/templates/steps/setup/debian/configure_network.yaml +0 -30
  101. data/templates/steps/setup/debian/configure_system.yaml +0 -12
  102. data/templates/steps/setup/debian/install_bootloader.yaml +0 -36
  103. data/templates/steps/setup/debian/install_software.yaml +0 -2
  104. data/templates/steps/setup/debian/oar/oar_debian_config_frontend.yaml +0 -8
  105. data/templates/steps/setup/debian/oar/oar_debian_config_node.yaml +0 -5
  106. data/templates/steps/setup/debian/oar/oar_debian_config_server.yaml +0 -5
  107. data/templates/steps/setup/debian/oar/oar_prereq_install.yaml +0 -16
  108. data/templates/steps/setup/debian/setup_vagrant_box.yaml +0 -80
  109. data/templates/steps/setup/debian/upgrade_system.yaml +0 -10
  110. data/templates/steps/setup/fedora/configure_kernel.yaml +0 -9
  111. data/templates/steps/setup/fedora/configure_keyboard.yaml +0 -12
  112. data/templates/steps/setup/fedora/configure_network.yaml +0 -38
  113. data/templates/steps/setup/fedora/configure_system.yaml +0 -52
  114. data/templates/steps/setup/fedora/install_bootloader.yaml +0 -53
  115. data/templates/steps/setup/fedora/install_software.yaml +0 -3
  116. data/templates/steps/setup/fedora/minimal_install.yaml +0 -3
  117. data/templates/steps/setup/fedora/update_system.yaml +0 -16
  118. data/templates/steps/setup/oar/oar_config_devel.yaml +0 -21
  119. data/templates/steps/setup/oar/oar_config_frontend.yaml +0 -38
  120. data/templates/steps/setup/oar/oar_config_node.yaml +0 -4
  121. data/templates/steps/setup/oar/oar_config_server.yaml +0 -25
  122. data/templates/steps/setup/oar/oar_config_system.yaml +0 -34
  123. data/templates/steps/setup/oar/oar_devel_prereq_install.yaml +0 -5
  124. data/templates/steps/setup/oar/oar_git_install.yaml +0 -21
  125. data/templates/steps/setup/ubuntu/configure_apt.yaml +0 -62
  126. data/templates/virtualbox/archlinux-desktop-i686.yaml +0 -25
  127. data/templates/virtualbox/archlinux-desktop-x86_64.yaml +0 -28
  128. data/templates/virtualbox/archlinux-i686.yaml +0 -28
  129. data/templates/virtualbox/archlinux-x86_64.yaml +0 -108
  130. data/templates/virtualbox/centos6.5-i386.yaml +0 -39
  131. data/templates/virtualbox/centos6.5-vagrant-x86_64.yaml +0 -33
  132. data/templates/virtualbox/centos6.5-x86_64.yaml +0 -121
  133. data/templates/virtualbox/centos7-x86_64.yaml +0 -118
  134. data/templates/virtualbox/debian7-amd64.yaml +0 -128
  135. data/templates/virtualbox/debian7-desktop-amd64.yaml +0 -25
  136. data/templates/virtualbox/debian7-i386.yaml +0 -31
  137. data/templates/virtualbox/debian7-kameleon-amd64.yaml +0 -38
  138. data/templates/virtualbox/debian7-oar-amd64.yaml +0 -51
  139. data/templates/virtualbox/debian7-vagrant-amd64.yaml +0 -32
  140. data/templates/virtualbox/debian8-amd64.yaml +0 -25
  141. data/templates/virtualbox/debian8-i386.yaml +0 -31
  142. data/templates/virtualbox/fedora20-x86_64.yaml +0 -118
  143. data/templates/virtualbox/ubuntu-12.04-amd64.yaml +0 -128
  144. data/templates/virtualbox/ubuntu-12.04-desktop-amd64.yaml +0 -25
  145. data/templates/virtualbox/ubuntu-14.04-amd64.yaml +0 -25
  146. data/templates/virtualbox/ubuntu-14.04-desktop-amd64.yaml +0 -27
  147. data/tests/recipes/dummy_recipe.yaml +0 -48
  148. data/tests/recipes/steps/bootstrap/dummy_distro/dummy_bootstrap_static.yaml +0 -4
  149. data/tests/recipes/steps/export/dummy_save_appliance.yaml +0 -9
  150. data/tests/recipes/steps/setup/default/dummy_root_passwd.yaml +0 -8
  151. data/tests/recipes/steps/setup/dummy_distro/dummy_software_install.yaml +0 -7
@@ -1,3 +0,0 @@
1
- # Software Install
2
- - install_packages:
3
- - exec_in: yum groupupdate --releasever=$$release 'Minimal Install' -y 2>&1
@@ -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,12 +0,0 @@
1
- # Create Group
2
-
3
- - create_group:
4
- - exec_in: |
5
- # check if a group is present before adding it
6
- if [ $(egrep -i "^$$name" /etc/group) ]
7
- then
8
- echo "WARNING: the group '$$name' is alredy present"
9
- else
10
- groupadd $$name
11
- fi
12
-
@@ -1,11 +0,0 @@
1
- # Create User
2
-
3
- - shell: /bin/bash
4
-
5
- - add_user:
6
- - exec_in: useradd -m $$name -s $$shell
7
- - exec_in: echo -n '$$name:$$password' | chpasswd
8
-
9
- - add_to_groups:
10
- - exec_in: |
11
- usermod -G "$(echo $$groups | tr ' ' ',')" $$name
@@ -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,13 +0,0 @@
1
- - configure_kernel:
2
- - write_in:
3
- - /etc/kernel-img.conf
4
- - |
5
- do_symlinks = yes
6
- relative_links = yes
7
- do_bootloader = yes
8
- do_bootfloppy = no
9
- do_initrd = yes
10
- link_in_boot = no
11
-
12
- - update_initramfs:
13
- - exec_in: update-initramfs -u
@@ -1,10 +0,0 @@
1
- # # Network Config
2
- - keyboard_config:
3
- - write_in:
4
- - /etc/default/keyboard
5
- - |
6
- XKBMODEL="pc105"
7
- XKBLAYOUT="$$layout"
8
- XKBVARIANT=""
9
- XKBOPTIONS=""
10
- - exec_in: apt-get -y --force-yes install console-setup console-data 2>&1
@@ -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,2 +0,0 @@
1
- - core_packages:
2
- - exec_in: apt-get -y --force-yes install $$packages 2>&1
@@ -1,8 +0,0 @@
1
- - configure_apache2:
2
- - exec_in: a2enmod ident
3
- - exec_in: a2enmod headers
4
- - exec_in: a2enmod rewrite
5
-
6
- - configure_basic_auth_api-priv:
7
- - exec_in: ln -s /etc/oar/apache2/oar-restful-api-priv.conf /etc/apache2/conf.d/oar-restful-api-priv.conf
8
-
@@ -1,5 +0,0 @@
1
- - configure_initd:
2
- - exec_in: cp $$oar_prefix_install/share/oar/oar-node/init.d/oar-node /etc/init.d/
3
- - exec_in: cp $$oar_prefix_install/share/oar/oar-node/default/oar-node /etc/default/
4
- - exec_in: update-rc.d oar-node defaults
5
-
@@ -1,5 +0,0 @@
1
- - configure_initd:
2
- - exec_in: cp $$oar_prefix_install/share/oar/oar-server/init.d/oar-server /etc/init.d/
3
- - exec_in: cp $$oar_prefix_install/share/oar/oar-server/default/oar-server /etc/default/
4
- - exec_in: update-rc.d oar-server defaults
5
-
@@ -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
@@ -1,10 +0,0 @@
1
-
2
-
3
- - dist_upgrade: true
4
-
5
- - upgrade_system:
6
- - exec_in: apt-get -y --force-yes $INSTALL_RECOMMENDS upgrade 2>&1
7
- - exec_in: |
8
- if [ $$dist_upgrade = false ]; then
9
- apt-get -y --force-yes dist-upgrade 2>&1
10
- fi
@@ -1,9 +0,0 @@
1
- - configure_kernel:
2
- - write_in:
3
- - /etc/sysconfig/kernel
4
- - |
5
- # UPDATEDEFAULT specifies if new-kernel-pkg should make
6
- # new kernels the default
7
- UPDATEDEFAULT=yes
8
- # DEFAULTKERNEL specifies the default kernel package type
9
- DEFAULTKERNEL=kernel
@@ -1,12 +0,0 @@
1
- # Keyboard configuration
2
-
3
- - set_keyboard_layout:
4
- - write_in:
5
- - /etc/vconsole.conf
6
- - |
7
- KEYMAP=$$layout
8
- - exec_in: loadkeys $$layout
9
- - write_in:
10
- - /etc/sysconfig/keyboard
11
- - |
12
- KEYTABLE=$$layout