comfy 0.2.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 (133) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +46 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +13 -0
  7. data/README.md +131 -0
  8. data/Rakefile +18 -0
  9. data/bin/comfy +4 -0
  10. data/comfy.gemspec +36 -0
  11. data/config/comfy.yml +20 -0
  12. data/lib/comfy/command_executioner.rb +225 -0
  13. data/lib/comfy/creator.rb +200 -0
  14. data/lib/comfy/errors/invalid_distribution_version_error.rb +1 -0
  15. data/lib/comfy/errors/no_such_distribution_version_error.rb +1 -0
  16. data/lib/comfy/errors/packer_error.rb +1 -0
  17. data/lib/comfy/errors/packer_execution_error.rb +1 -0
  18. data/lib/comfy/errors/packer_validation_error.rb +1 -0
  19. data/lib/comfy/errors.rb +4 -0
  20. data/lib/comfy/extensions/yell.rb +8 -0
  21. data/lib/comfy/settings.rb +15 -0
  22. data/lib/comfy/templater.rb +62 -0
  23. data/lib/comfy/version.rb +3 -0
  24. data/lib/comfy.rb +18 -0
  25. data/lib/templates/centos/centos.cfg.erb +47 -0
  26. data/lib/templates/centos/centos.description +20 -0
  27. data/lib/templates/centos/files/10-ipv6.conf +5 -0
  28. data/lib/templates/centos/files/check-mk-agent-meta-checks-2.0-1.noarch.rpm +0 -0
  29. data/lib/templates/centos/files/check-mk-agent-meta-key-1.0-1.noarch.rpm +0 -0
  30. data/lib/templates/centos/files/cloud.cfg +101 -0
  31. data/lib/templates/centos/files/fail2ban.local +3 -0
  32. data/lib/templates/centos/files/getty@ttyS0.service +47 -0
  33. data/lib/templates/centos/files/grub +11 -0
  34. data/lib/templates/centos/files/iptables-multiport.local +6 -0
  35. data/lib/templates/centos/files/jail.local +17 -0
  36. data/lib/templates/centos/files/krb5.conf +181 -0
  37. data/lib/templates/centos/files/ntp.conf +61 -0
  38. data/lib/templates/centos/files/pakiti-2.1.5-1.noarch.rpm +0 -0
  39. data/lib/templates/centos/files/sshd_config +152 -0
  40. data/lib/templates/centos/files/xen-domU.conf +1 -0
  41. data/lib/templates/centos/scripts/init.sh +83 -0
  42. data/lib/templates/debian/debian.cfg.erb +80 -0
  43. data/lib/templates/debian/debian.description +28 -0
  44. data/lib/templates/debian/files/.bashrc +112 -0
  45. data/lib/templates/debian/files/.gitconfig +7 -0
  46. data/lib/templates/debian/files/10-ipv6.conf +5 -0
  47. data/lib/templates/debian/files/DEPOT-GPG-KEY.cfg +32 -0
  48. data/lib/templates/debian/files/RPM-GPG-KEY-CERIT-SC.cfg +30 -0
  49. data/lib/templates/debian/files/backports.list +2 -0
  50. data/lib/templates/debian/files/cerit-cloudinit.list +2 -0
  51. data/lib/templates/debian/files/cloud.cfg +102 -0
  52. data/lib/templates/debian/files/depot.list +4 -0
  53. data/lib/templates/debian/files/depot_all.pref +6 -0
  54. data/lib/templates/debian/files/depot_check_mk.pref +5 -0
  55. data/lib/templates/debian/files/fail2ban.local +3 -0
  56. data/lib/templates/debian/files/getty@ttyS0.service +47 -0
  57. data/lib/templates/debian/files/grub +34 -0
  58. data/lib/templates/debian/files/inittab +69 -0
  59. data/lib/templates/debian/files/interfaces +15 -0
  60. data/lib/templates/debian/files/iptables-multiport.local +6 -0
  61. data/lib/templates/debian/files/jail.local +17 -0
  62. data/lib/templates/debian/files/krb5.conf +181 -0
  63. data/lib/templates/debian/files/meta-misc.list +2 -0
  64. data/lib/templates/debian/files/modules +15 -0
  65. data/lib/templates/debian/files/ntp.conf +61 -0
  66. data/lib/templates/debian/files/pakiti_2.1.5-2_all.deb +0 -0
  67. data/lib/templates/debian/files/sshd_config +131 -0
  68. data/lib/templates/debian/scripts/debian_cloud_script.sh +80 -0
  69. data/lib/templates/docker/docker.cfg.erb +87 -0
  70. data/lib/templates/docker/docker.description +21 -0
  71. data/lib/templates/docker/files/10-ipv6.conf +5 -0
  72. data/lib/templates/docker/files/DEPOT-GPG-KEY.cfg +32 -0
  73. data/lib/templates/docker/files/RPM-GPG-KEY-CERIT-SC.cfg +30 -0
  74. data/lib/templates/docker/files/cloud.cfg +109 -0
  75. data/lib/templates/docker/files/depot.list +4 -0
  76. data/lib/templates/docker/files/depot_all.pref +6 -0
  77. data/lib/templates/docker/files/depot_check_mk.pref +5 -0
  78. data/lib/templates/docker/files/docker.list +1 -0
  79. data/lib/templates/docker/files/fail2ban.local +3 -0
  80. data/lib/templates/docker/files/grub +34 -0
  81. data/lib/templates/docker/files/interfaces +15 -0
  82. data/lib/templates/docker/files/iptables-multiport.local +6 -0
  83. data/lib/templates/docker/files/jail.local +17 -0
  84. data/lib/templates/docker/files/krb5.conf +181 -0
  85. data/lib/templates/docker/files/meta-misc.list +2 -0
  86. data/lib/templates/docker/files/modules +15 -0
  87. data/lib/templates/docker/files/ntp.conf +61 -0
  88. data/lib/templates/docker/files/pakiti_2.1.5-2_all.deb +0 -0
  89. data/lib/templates/docker/files/sshd_config +131 -0
  90. data/lib/templates/docker/files/ttyS0.conf +11 -0
  91. data/lib/templates/docker/scripts/init.sh +65 -0
  92. data/lib/templates/packer.erb +93 -0
  93. data/lib/templates/scientificlinux/files/10-ipv6.conf +5 -0
  94. data/lib/templates/scientificlinux/files/check-mk-agent-meta-checks-2.0-1.noarch.rpm +0 -0
  95. data/lib/templates/scientificlinux/files/check-mk-agent-meta-key-1.0-1.noarch.rpm +0 -0
  96. data/lib/templates/scientificlinux/files/cloud.cfg +101 -0
  97. data/lib/templates/scientificlinux/files/fail2ban.local +3 -0
  98. data/lib/templates/scientificlinux/files/getty@ttyS0.service +47 -0
  99. data/lib/templates/scientificlinux/files/grub +10 -0
  100. data/lib/templates/scientificlinux/files/iptables-multiport.local +6 -0
  101. data/lib/templates/scientificlinux/files/jail.local +17 -0
  102. data/lib/templates/scientificlinux/files/krb5.conf +181 -0
  103. data/lib/templates/scientificlinux/files/ntp.conf +61 -0
  104. data/lib/templates/scientificlinux/files/pakiti-2.1.5-1.noarch.rpm +0 -0
  105. data/lib/templates/scientificlinux/files/sshd_config +150 -0
  106. data/lib/templates/scientificlinux/files/xen-domU.conf +1 -0
  107. data/lib/templates/scientificlinux/scientificlinux.cfg.erb +57 -0
  108. data/lib/templates/scientificlinux/scientificlinux.description +19 -0
  109. data/lib/templates/scientificlinux/scripts/init.sh +92 -0
  110. data/lib/templates/ubuntu/files/10-ipv6.conf +5 -0
  111. data/lib/templates/ubuntu/files/DEPOT-GPG-KEY.cfg +32 -0
  112. data/lib/templates/ubuntu/files/RPM-GPG-KEY-CERIT-SC.cfg +30 -0
  113. data/lib/templates/ubuntu/files/cloud.cfg +109 -0
  114. data/lib/templates/ubuntu/files/depot.list +4 -0
  115. data/lib/templates/ubuntu/files/depot_all.pref +6 -0
  116. data/lib/templates/ubuntu/files/depot_check_mk.pref +5 -0
  117. data/lib/templates/ubuntu/files/fail2ban.local +3 -0
  118. data/lib/templates/ubuntu/files/grub +34 -0
  119. data/lib/templates/ubuntu/files/interfaces +15 -0
  120. data/lib/templates/ubuntu/files/iptables-multiport.local +6 -0
  121. data/lib/templates/ubuntu/files/jail.local +17 -0
  122. data/lib/templates/ubuntu/files/krb5.conf +181 -0
  123. data/lib/templates/ubuntu/files/meta-misc.list +2 -0
  124. data/lib/templates/ubuntu/files/modules +15 -0
  125. data/lib/templates/ubuntu/files/ntp.conf +61 -0
  126. data/lib/templates/ubuntu/files/pakiti_2.1.5-2_all.deb +0 -0
  127. data/lib/templates/ubuntu/files/sshd_config +131 -0
  128. data/lib/templates/ubuntu/files/ttyS0.conf +11 -0
  129. data/lib/templates/ubuntu/scripts/init.sh +54 -0
  130. data/lib/templates/ubuntu/ubuntu.cfg.erb +87 -0
  131. data/lib/templates/ubuntu/ubuntu.description +21 -0
  132. data/schema/distribution_descriptor.schema +241 -0
  133. metadata +374 -0
@@ -0,0 +1,57 @@
1
+ # Locale
2
+ lang en_US.UTF-8
3
+ keyboard us
4
+ timezone UTC
5
+ # Authentication
6
+ ## Sets up the authentication options - use shadow passwords, use md5 encryption for user passwords
7
+ authconfig --enableshadow --enablemd5
8
+ ## Sets the system's root password
9
+ rootpw <%= @data[:password] %>
10
+ # Kickstart
11
+ ## Fresh install, not an upgrade
12
+ install
13
+ ## Specify install source - install via HTTP, more SL urls here: http://www.scientificlinux.org/download/mirrors
14
+ url --url=http://mirror.karneval.cz/pub/linux/scientific/<%= @data[:distro][:version]['major_version'] %>.<%= @data[:distro][:version]['minor_version'] %>/x86_64/os/
15
+ ## Disk Partitioning - how the boot loader should be installed, delete all partitions/mbr, then create new layout
16
+ bootloader --location=mbr
17
+ zerombr
18
+ clearpart --all --initlabel
19
+ part / --size=1 --grow
20
+ ## Firstboot - the druid that helps you to set up the system after install - disabled
21
+ firstboot --disabled
22
+ ## Don't use GUI
23
+ text
24
+ ## Don't configure X
25
+ skipx
26
+ ## Reboot the machine after the install
27
+ reboot
28
+ ## Configure NICs - use dhcp - disable IPv6
29
+ network --device=eth0 --bootproto dhcp --onboot=yes --noipv6
30
+ network --device=eth1 --bootproto dhcp --onboot=yes --noipv6
31
+ ## Firewall - enable and open ssh port
32
+ firewall --enabled --service=ssh
33
+ ## Selinux - disable
34
+ selinux --disabled
35
+ ## Add some repos for build additional packages
36
+ #repo --name=epel --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 --includepkgs='dkms,tmux'
37
+ %packages
38
+ # Note that the Core and Base groups are always selected by default,
39
+ # so it is not necessary to specify them in the %packages section.
40
+ ## Add basic packages groups
41
+ @core
42
+ @base
43
+ ## Add basic packages
44
+ wget
45
+ curl
46
+ sudo
47
+ bzip2
48
+ ## Add extra packages
49
+ openssh-clients
50
+ openssh-server
51
+ rsync
52
+ mc
53
+ tmux
54
+ %end
55
+ %post
56
+ /usr/bin/yum -y upgrade
57
+ %end
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "ScientificLinux",
3
+ "versions": [{
4
+ "major_version": "7",
5
+ "minor_version": "1",
6
+ "iso_url": "http://mirror.karneval.cz/pub/linux/scientific/7/x86_64/iso/SL-7.1-x86_64-netinst.iso",
7
+ "iso_checksum": "9b744b748199a7da27b181a6338b74520ea459ce80c240b8464f3842c10e79b6"
8
+ }],
9
+ "boot_command": "linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}",
10
+ "qemu": {
11
+ "accelerator": "kvm",
12
+ "qemuargs": [ [ "-m", "1024M" ] ]
13
+ },
14
+ "virtualbox": {
15
+ "guest_os_type": "RedHat_64",
16
+ "vboxmanage": [ ["modifyvm", "{{.Name}}", "--memory", "1024"] ],
17
+ "guest_additions_mode": "disable"
18
+ }
19
+ }
@@ -0,0 +1,92 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # add EPEL repository
4
+ yum -y install http://ftp.astral.ro/mirrors/fedora/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
5
+ # update already installed packages
6
+ yum -y update
7
+ # install new packages
8
+ yum -y install cloud-init
9
+ yum -y install fail2ban ntp
10
+ yum -y install qemu-guest-agent
11
+ yum -y install krb5-libs krb5-workstation pam_krb5
12
+ yum -y install vim git
13
+ yum -y remove chrony
14
+
15
+ # set cloud-init to start after boot
16
+ systemctl enable cloud-init-local
17
+ systemctl enable cloud-init
18
+ systemctl enable cloud-config
19
+ systemctl enable cloud-final
20
+
21
+ # NTPd start after boot
22
+ systemctl enable ntpd.service
23
+
24
+ # move configuration file to their right place
25
+ mv /root/cloud.cfg /etc/cloud/cloud.cfg
26
+ mv /root/krb5.conf /etc/krb5.conf
27
+ mv /root/sshd_config /etc/ssh/sshd_config
28
+ mv /root/10-ipv6.conf /etc/sysctl.d/10-ipv6.conf
29
+ mv /root/grub /etc/default/grub
30
+ mv /root/getty\@ttyS0.service /etc/systemd/system/getty\@ttyS0.service
31
+ grub2-mkconfig -o /boot/grub2/grub.cfg
32
+ ln -s /etc/systemd/system/getty\@ttyS0.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service
33
+ mv /root/ntp.conf /etc/ntp.conf
34
+ mv /root/xen-domU.conf /etc/dracut.conf.d/xen-domU.conf
35
+
36
+ # fail2ban
37
+ mv /root/iptables-multiport.local /etc/fail2ban/action.d/iptables-multiport.local
38
+ mv /root/jail.local /etc/fail2ban/jail.local
39
+ mv /root/fail2ban.local /etc/fail2ban/fail2ban.local
40
+
41
+ # pakiti-2-client
42
+ rpm -i pakiti-2.1.5-1.noarch.rpm
43
+ rm -f pakiti-2.1.5-1.noarch.rpm
44
+
45
+ # check-mk-agent
46
+ yum -y install check-mk-agent
47
+ rpm -i check-mk-agent-meta-key-1.0-1.noarch.rpm
48
+ rpm -i check-mk-agent-meta-checks-2.0-1.noarch.rpm
49
+ rm -f check-mk-agent-meta-key-1.0-1.noarch.rpm
50
+ rm -f check-mk-agent-meta-checks-2.0-1.noarch.rpm
51
+ sed -i s/"disable\s*= no"/'disable = yes'/g /etc/xinetd.d/check-mk-agent
52
+
53
+ # remove hardware address (MAC) and UUID from NIC configuration files
54
+ sed -i '/^HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth*
55
+ sed -i '/^UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth*
56
+
57
+ # make sure nothing is messing with NICs' MAC adresses
58
+ unlink /etc/udev/rules.d/70-persistent-net.rules
59
+ ln -s /dev/null /etc/udev/rules.d/70-persistent-net.rules
60
+ unlink /etc/udev/rules.d/70-persistent-cd.rules
61
+ ln -s /dev/null /etc/udev/rules.d/70-persistent-cd.rules
62
+
63
+ # create configuration for second NIC if it's missing
64
+ if [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth1 ]; then
65
+ sed 's/eth0/eth1/g' /etc/sysconfig/network-scripts/ifcfg-eth0 > /etc/sysconfig/network-scripts/ifcfg-eth1
66
+ fi
67
+
68
+ # enable built-in networking
69
+ # using both commands because of unfinished systemd support in system
70
+ systemctl enable network
71
+ chkconfig network on
72
+
73
+ # disable NetworkManager
74
+ systemctl disable NetworkManager
75
+
76
+ #remove chrony to enable NTP service
77
+ rpm -e chrony
78
+
79
+ # allow to use sudo via ssh
80
+ chmod u+w /etc/sudoers
81
+ sed -i s/'Defaults requiretty'/'#Defaults requiretty'/g /etc/sudoers
82
+ chmod -w /etc/sudoers
83
+
84
+ #regenerate initrd files
85
+ dracut -f
86
+
87
+ # disable root login with password
88
+ passwd -d root
89
+
90
+ rm -f ~/.bash_history
91
+ rm -f /var/log/cloud-init*
92
+
@@ -0,0 +1,5 @@
1
+ net.ipv6.conf.all.disable_ipv6 = 1
2
+ net.ipv6.conf.default.disable_ipv6 = 1
3
+ net.ipv6.conf.lo.disable_ipv6 = 1
4
+ net.ipv6.conf.eth0.disable_ipv6 = 1
5
+ net.ipv6.conf.eth1.disable_ipv6 = 1
@@ -0,0 +1,32 @@
1
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
2
+ Version: GnuPG v1.4.6 (GNU/Linux)
3
+
4
+ mQINBEvVSjABEACo7dd0akbgM+C+Oph64KHYaF2Cezsv2Ngc2W/OGZ3dhCdhxbE/
5
+ 7dnt4Mm5V5eLzuevgf90Pm/W1k0AAlYPqDmiHlom45G1J+XrQqWhZNPv7HCiAj/X
6
+ 7tiXV/Gp4BfQvJJasilAACTkqbsloANRktd9S1k5jRd+zfVvkNEoEUW9/HT6w6Z5
7
+ ZRlYixw/ooDpcX4uK7rHeTtC0udLDwAWY281/zn8XMPEvLo7ql+5kABJIy6iZJ2o
8
+ vyWyo4SwYkYOHPcni4Cy6jCGP9LZR61sweOcsdfc8vsvr120OdFuTpR9X9gm6K20
9
+ tX8PDEy3GzMreVtrI/bJrcVbu+oz7cCycl+8qIkNtX+B2zC7tslE316xfoat7ZIb
10
+ sYQcHXTlvedfMS7NtZ8NfOVernwt3tWffBmyTSrmlrqTGOwes6Vm2xhXZ7/h9K+W
11
+ 7zEFTID8idpHqnDdx9DFFuUeQ6IcmAOjE4Xny/bfw0jan3/0+Ncv1FX5NJzf7GdH
12
+ 4Xm85v2DNA689jHziJv3X/QLKtP4LEA0JmZD++9hAM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IFJlcG9zaXRvcnkgPHBhY2thZ2VzQGNlcml0LXNj
16
+ LmN6PokCPgQTAQIAKAUCTtO/CwIbAwUJCWYBgAYLCQgHAwIGFQgCCQoLBBYCAwEC
17
+ HgECF4AACgkQ3DqaO9m5+z0ajQ//YcM8xgHeNr7CQpextlJ2MJWfgdl2W09vwHkp
18
+ ldYCxaXz8TEMs76EwYeW2El6sqosQigCnkIGGBLzc3Iv9A9nNnRyFFt4dtoouML5
19
+ wNgwaWq9qve1RecjQG7WFx+O0mmo3pdqLA3a4u3oDdMBCqXJwlONI0E4wxpszKM0
20
+ J03+A5z1fRtmoqFAQKxddmI0FtAXKyt5GQFvX/mxO+vJ5xtHLll9+doU6ojcM92Y
21
+ c8tf66vCyGWFAIl25qbvCrvIARLo2EqpOsjB+DfhlXs5qLnXFMrSxRBwOfl2X6LJ
22
+ sEEzPPKhrdpj6DjVs08UEXYLbXvuS1/cOXqngDDRUaamcTsz3tGF1iMu4gKBLg6R
23
+ 3+ZOm8Lf/FP/irdaWB97zSVeJWhyquaHSDzPp+/IWQCOc5qWTjgfYBhuQ6QN1Lmz
24
+ kTSdnGqU47xif7dHAw2W+QmIFzND+iUAcoMKvQdlwzosoTN1raApBXjtcMvwn3cv
25
+ c+1NOQ1CxAEOycv9Vlja+I/vxJqNbSy2BO9FpiGM6aTFYwpr1RNC/o/a28Xqr+hZ
26
+ SRueBQW8kkvrwPoE2sHqEmR0j76MssiEWLsxnyrJH8/u42xlv8aOAqf6Q7osShMj
27
+ CROefhLCidIbW10erf5FjHkukcysuTO4FJcsnJHWy+F0jgubYza/mQLK6qY9ShIq
28
+ OEkYIXo=
29
+ =oPbY
30
+ -----END PGP PUBLIC KEY BLOCK-----
@@ -0,0 +1,109 @@
1
+ # If this is set, 'root' will not be able to ssh in and they
2
+ # will get a message to login instead as the above $user (ubuntu)
3
+ disable_root: False
4
+ user: root
5
+ ssh_pwauth: False
6
+ ssh_deletekeys: True
7
+ ssh_genkeytypes: ['rsa', 'dsa']
8
+ ssh_svcname: ssh
9
+
10
+ # This will cause the set+update hostname module to not operate (if true)
11
+ preserve_hostname: false
12
+ cc_ready_cmd: ['/bin/true']
13
+ mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']
14
+ syslog_fix_perms: ~
15
+ manage_etc_hosts: True
16
+
17
+ # Update and upgrade system on first boot
18
+ apt_preserve_sources_list: True
19
+ apt_update: True
20
+ apt_upgrade: True
21
+ package_reboot_if_required: True
22
+
23
+
24
+ # work only with OpenNebula, use network based datasource,
25
+ # so that we can successfully resolve IPv4 based hostname
26
+ disable_ec2_metadata: True
27
+ datasource_list: ['OpenNebula']
28
+ datasource:
29
+ OpenNebula:
30
+ dsmode: net
31
+
32
+ # The modules that run in the 'init' stage
33
+ cloud_init_modules:
34
+ - migrator
35
+ - seed_random
36
+ - bootcmd
37
+ - write-files
38
+ - growpart
39
+ - resizefs
40
+ - set_hostname
41
+ - update_hostname
42
+ - update_etc_hosts
43
+ - ca-certs
44
+ - rsyslog
45
+ - users-groups
46
+ - ssh
47
+
48
+ # The modules that run in the 'config' stage
49
+ cloud_config_modules:
50
+ # Emit the cloud config ready event
51
+ # this can be used by upstart jobs for 'start on cloud-config'.
52
+ - emit_upstart
53
+ - disk_setup
54
+ - mounts
55
+ - ssh-import-id
56
+ - locale
57
+ - set-passwords
58
+ - grub-dpkg
59
+ - apt-pipelining
60
+ - apt-configure
61
+ - package-update-upgrade-install
62
+ - landscape
63
+ - timezone
64
+ - puppet
65
+ - chef
66
+ - salt-minion
67
+ - mcollective
68
+ - disable-ec2-metadata
69
+ - runcmd
70
+ - byobu
71
+
72
+ # The modules that run in the 'final' stage
73
+ cloud_final_modules:
74
+ - rightscale_userdata
75
+ - scripts-per-once
76
+ - scripts-per-boot
77
+ - scripts-per-instance
78
+ - scripts-user
79
+ - ssh-authkey-fingerprints
80
+ - keys-to-console
81
+ - phone-home
82
+ - final-message
83
+ - power-state-change
84
+
85
+ # System and/or distro specific settings
86
+ # (not accessible to handlers/transforms)
87
+ system_info:
88
+ # This will affect which distro class gets used
89
+ distro: ubuntu
90
+ # Other config here will be given to the distro class and/or path classes
91
+ paths:
92
+ cloud_dir: /var/lib/cloud/
93
+ templates_dir: /etc/cloud/templates/
94
+ upstart_dir: /etc/init/
95
+ package_mirrors:
96
+ - arches: [i386, amd64]
97
+ failsafe:
98
+ primary: http://archive.ubuntu.com/ubuntu
99
+ security: http://security.ubuntu.com/ubuntu
100
+ search:
101
+ primary:
102
+ - http://%(ec2_region)s.ec2.archive.ubuntu.com/ubuntu/
103
+ - http://%(availability_zone)s.clouds.archive.ubuntu.com/ubuntu/
104
+ security: []
105
+ - arches: [armhf, armel, default]
106
+ failsafe:
107
+ primary: http://ports.ubuntu.com/ubuntu-ports
108
+ security: http://ports.ubuntu.com/ubuntu-ports
109
+ ssh_svcname: ssh
@@ -0,0 +1,4 @@
1
+ # depot_all
2
+ deb ftp://depot1.mc.cesnet.cz/ all main
3
+ # depot_squeeze
4
+ deb ftp://depot1.mc.cesnet.cz/ squeeze main
@@ -0,0 +1,6 @@
1
+ # depot_all
2
+ Explanation: : depot_all
3
+ Package: *
4
+ Pin: origin "depot1.mc.cesnet.cz"
5
+ Pin-Priority: 20
6
+
@@ -0,0 +1,5 @@
1
+ # depot_check_mk
2
+ Explanation: : depot_check_mk
3
+ Package: check-mk*
4
+ Pin: origin "depot1.mc.cesnet.cz"
5
+ Pin-Priority: 1200
@@ -0,0 +1,3 @@
1
+ [Definition]
2
+
3
+ logtarget = SYSLOG
@@ -0,0 +1,34 @@
1
+ # If you change this file, run 'update-grub' afterwards to update
2
+ # /boot/grub/grub.cfg.
3
+ # For full documentation of the options in this file, see:
4
+ # info -f grub -n 'Simple configuration'
5
+
6
+ GRUB_DEFAULT=0
7
+ GRUB_HIDDEN_TIMEOUT=0
8
+ GRUB_HIDDEN_TIMEOUT_QUIET=true
9
+ GRUB_TIMEOUT=10
10
+ GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
11
+ #GRUB_CMDLINE_LINUX_DEFAULT="splash quiet"
12
+ GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
13
+
14
+ # Uncomment to enable BadRAM filtering, modify to suit your needs
15
+ # This works with Linux (no patch required) and with any kernel that obtains
16
+ # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
17
+ #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
18
+
19
+ # Uncomment to disable graphical terminal (grub-pc only)
20
+ GRUB_TERMINAL=serial
21
+ GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
22
+ # The resolution used on graphical terminal
23
+ # note that you can use only modes which your graphic card supports via VBE
24
+ # you can see them in real GRUB with the command `vbeinfo'
25
+ #GRUB_GFXMODE=640x480
26
+
27
+ # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
28
+ #GRUB_DISABLE_LINUX_UUID=true
29
+
30
+ # Uncomment to disable generation of recovery mode menu entries
31
+ #GRUB_DISABLE_RECOVERY="true"
32
+
33
+ # Uncomment to get a beep at grub start
34
+ #GRUB_INIT_TUNE="480 440 1"
@@ -0,0 +1,15 @@
1
+ # This file describes the network interfaces available on your system
2
+ # and how to activate them. For more information, see interfaces(5).
3
+
4
+ # The loopback network interface
5
+ auto lo
6
+ iface lo inet loopback
7
+
8
+ # The primary network interface
9
+ allow-hotplug eth0
10
+ iface eth0 inet dhcp
11
+
12
+ # The secondary network interface
13
+ allow-hotplug eth1
14
+ iface eth1 inet dhcp
15
+
@@ -0,0 +1,6 @@
1
+ [Definition]
2
+
3
+ actionban = iptables -I fail2ban-<name> 1 -s <ip> -j REJECT
4
+
5
+ actionunban = iptables -D fail2ban-<name> -s <ip> -j REJECT
6
+
@@ -0,0 +1,17 @@
1
+ [DEFAULT]
2
+
3
+ # Seznam vygenerovany skriptem /software/meta-admin/scripts/get_nodes_ips
4
+ # Vygeneruje pouze C site, tzn. je tam o nekolik set hostu vic nez ve skutecnosti
5
+
6
+ ignoreip = 127.0.0.1 147.228.1.0/24 147.251.17.0/24 147.228.240.0/24 147.228.241.0/24 147.231.11.0/24 147.231.18.0/24 147.251.11.0/24 147.251.252.0/24 147.251.254.0/24 147.251.3.0/24 147.251.84.0/24 147.251.9.0/24 195.113.0.0/24 195.113.123.0/24 195.113.209.0/24 195.113.214.0/24 78.128.210.0/24
7
+
8
+ [ssh]
9
+
10
+ enabled = true
11
+ port = ssh
12
+ filter = sshd
13
+ logpath = /var/log/auth.log
14
+ maxretry = 100
15
+ findtime = 86400
16
+ bantime = 1209600
17
+
@@ -0,0 +1,181 @@
1
+ [libdefaults]
2
+ default_realm = META
3
+ forwardable = yes
4
+ forward = yes
5
+ encrypt = yes
6
+ srv_lookup = no
7
+ srv_try_txt = no
8
+ no-addresses = yes
9
+ allow_weak_crypto = true
10
+
11
+ [realms]
12
+ ICS.MUNI.CZ = {
13
+ kdc = kdccesnet.ics.muni.cz
14
+ kdc = kdc1.cesnet.cz
15
+ kdc = kdccesnet.meta.zcu.cz
16
+ admin_server = kdc1.cesnet.cz
17
+ kpasswd_server = kdc1.cesnet.cz
18
+ }
19
+ META = {
20
+ kdc = kdccesnet.ics.muni.cz
21
+ kdc = kdc1.cesnet.cz
22
+ kdc = kdccesnet.meta.zcu.cz
23
+ kdc = sal.ruk.cuni.cz:89
24
+ kdc = jerry.ruk.cuni.cz
25
+ admin_server = kdc1.cesnet.cz
26
+ kpasswd_server = kdc1.cesnet.cz
27
+ krb525_server = kdccesnet.ics.muni.cz
28
+ krb525_server = kdc1.cesnet.cz
29
+ krb525_server = kdccesnet.meta.zcu.cz
30
+ }
31
+ ZCU.CZ = {
32
+ kdc = kerberos1.zcu.cz
33
+ kdc = kerberos2.zcu.cz
34
+ kdc = kerberos3.zcu.cz
35
+ admin_server = kerberos-adm.zcu.cz
36
+ kpasswd_server = kerberos-adm.zcu.cz
37
+ }
38
+ RUK.CUNI.CZ = {
39
+ kdc = sal.ruk.cuni.cz
40
+ kdc = jerry.ruk.cuni.cz:89
41
+ admin_server = sal.ruk.cuni.cz
42
+ kpasswd_server = sal.ruk.cuni.cz
43
+ krb524_server = sal.ruk.cuni.cz
44
+ krb524_server = jerry.ruk.cuni.cz:89
45
+ }
46
+ IS.MUNI.CZ = {
47
+ kdc = ariadna.fi.muni.cz
48
+ }
49
+ SITOLA.FI.MUNI.CZ = {
50
+ kdc = hendrak.fi.muni.cz
51
+ kdc = oberon.fi.muni.cz
52
+ admin_server = oberon.fi.muni.cz
53
+ kpasswd_server = oberon.fi.muni.cz
54
+ }
55
+ ADMIN.META = {
56
+ kdc = kdccesnet.ics.muni.cz
57
+ admin_server = kdccesnet.ics.muni.cz
58
+ kpasswd_server = kdccesnet.ics.muni.cz
59
+ }
60
+ ASR.ICS.MUNI.CZ = {
61
+ kdc = bombur.ics.muni.cz
62
+ admin_server = bombur.ics.muni.cz
63
+ kpasswd_server = bombur.ics.muni.cz
64
+ }
65
+ EINFRA = {
66
+ kdc = kdc1.cesnet.cz
67
+ kdc = kdccesnet.ics.muni.cz
68
+ kdc = kdccesnet.meta.zcu.cz
69
+ admin_server = kdc1.cesnet.cz
70
+ }
71
+ EINFRA-SERVICES = {
72
+ kdc = kdc1.cesnet.cz
73
+ kdc = kdccesnet.ics.muni.cz
74
+ kdc = kdccesnet.meta.zcu.cz
75
+ admin_server = kdc1.cesnet.cz
76
+ }
77
+ EGI = {
78
+ kdc = kdc1.cesnet.cz
79
+ kdc = kdccesnet.ics.muni.cz
80
+ kdc = kdccesnet.meta.zcu.cz
81
+ admin_server = kdc1.cesnet.cz
82
+ }
83
+ SAGRID = {
84
+ kdc = kdc1.cesnet.cz
85
+ admin_server = kdc1.cesnet.cz
86
+ }
87
+ ELIXIR-EUROPE.ORG = {
88
+ kdc = kdc1.cesnet.cz
89
+ admin_server = kdc1.cesnet.cz
90
+ }
91
+
92
+ [capaths]
93
+ RUK.CUNI.CZ = {
94
+ EINFRA-SERVICES = META
95
+ ZCU.CZ = META
96
+ }
97
+ ZCU.CZ = {
98
+ EINFRA-SERVICES = META
99
+ RUK.CUNI.CZ = META
100
+ }
101
+ ICS.MUNI.CZ = {
102
+ EINFRA-SERVICES = META
103
+ }
104
+ EINFRA = {
105
+ ICS.MUNI.CZ = META
106
+ }
107
+ EINFRA-SERVICES = {
108
+ ICS.MUNI.CZ = META
109
+ RUK.CUNI.CZ = META
110
+ ZCU.CZ = META
111
+ }
112
+
113
+ [domain_realm]
114
+ sirion.ics.muni.cz = META
115
+ erebor.ics.muni.cz = META
116
+ acharon.ruk.cuni.cz = META
117
+ androth.zcu.cz = ICS.MUNI.CZ
118
+ .fi.muni.cz = SITOLA.FI.MUNI.CZ
119
+ .ics.muni.cz = ICS.MUNI.CZ
120
+ .cesnet.cz = ICS.MUNI.CZ
121
+ .zcu.cz = ZCU.CZ
122
+ .ruk.cuni.cz = RUK.CUNI.CZ
123
+ .medigrid.cz = ICS.MUNI.CZ
124
+ .video.muni.cz = ICS.MUNI.CZ
125
+ .ncbr.muni.cz = ICS.MUNI.CZ
126
+ .prf.jcu.cz = ICS.MUNI.CZ
127
+ .feec.vutbr.cz = ICS.MUNI.CZ
128
+ atlases.muni.cz = ICS.MUNI.CZ
129
+ .egi.eu = META
130
+ .fzu.cz = META
131
+ .cerit-sc.cz = ICS.MUNI.CZ
132
+ kdc1.cesnet.cz = EINFRA-SERVICES
133
+ .du1.cesnet.cz = EINFRA-SERVICES
134
+ .du2.cesnet.cz = EINFRA-SERVICES
135
+ .du3.cesnet.cz = EINFRA-SERVICES
136
+ ui2.grid.cesnet.cz = EINFRA-SERVICES
137
+ ui1.egee.cesnet.cz = EINFRA-SERVICES
138
+ ui1.grid.cesnet.cz = EINFRA-SERVICES
139
+ .metacentrum.cz = ICS.MUNI.CZ
140
+ .ueb.cas.cz = ICS.MUNI.CZ
141
+ .meta.zcu.cz = META
142
+ .ukb.muni.cz = ICS.MUNI.CZ
143
+ .ceitec.muni.cz = EINFRA-SERVICES
144
+
145
+ [appdefaults]
146
+ krb4_get_tickets = no
147
+ krb4_convert = no
148
+ krb4_convert_524 = no
149
+ pam = {
150
+ debug = false
151
+ forwardable = true
152
+ afs_cells = ics.muni.cz
153
+ minimum_uid=100
154
+ addressless = true
155
+ #Debian
156
+ realm = META
157
+ validate = true
158
+ #SuSE
159
+ ticket_lifetime = 36000
160
+ renew_lifetime = 36000
161
+ proxiable = false
162
+ retain_after_close = false
163
+ try_first_pass = true
164
+ external=true
165
+ force_creds = true
166
+ }
167
+ libkafs = {
168
+ ZCU.CZ = {
169
+ afs-use-524 = 2b
170
+ }
171
+ ICS.MUNI.CZ = {
172
+ afs-use-524 = 2b
173
+ }
174
+ RUK.CUNI.CZ = {
175
+ afs-use-524 = 2b
176
+ }
177
+ }
178
+
179
+ [kadmin]
180
+ default_keys = v5 v4
181
+
@@ -0,0 +1,2 @@
1
+ ## CERIT-SC's meta-misc repository
2
+ deb http://apt.cerit-sc.cz/meta_misc/ wheezy main
@@ -0,0 +1,15 @@
1
+ # List of modules that you want to include in your initramfs.
2
+ # They will be loaded at boot time in the order below.
3
+ #
4
+ # Syntax: module_name [args ...]
5
+ #
6
+ # You must run update-initramfs(8) to effect this change.
7
+ #
8
+ # Examples:
9
+ #
10
+ # raid1
11
+ # sd_mod
12
+ xen-blkfront
13
+ xen-netfront
14
+ xen-kbdfront
15
+