comfy 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +46 -0
- data/Gemfile +4 -0
- data/LICENSE +13 -0
- data/README.md +131 -0
- data/Rakefile +18 -0
- data/bin/comfy +4 -0
- data/comfy.gemspec +36 -0
- data/config/comfy.yml +20 -0
- data/lib/comfy/command_executioner.rb +225 -0
- data/lib/comfy/creator.rb +200 -0
- data/lib/comfy/errors/invalid_distribution_version_error.rb +1 -0
- data/lib/comfy/errors/no_such_distribution_version_error.rb +1 -0
- data/lib/comfy/errors/packer_error.rb +1 -0
- data/lib/comfy/errors/packer_execution_error.rb +1 -0
- data/lib/comfy/errors/packer_validation_error.rb +1 -0
- data/lib/comfy/errors.rb +4 -0
- data/lib/comfy/extensions/yell.rb +8 -0
- data/lib/comfy/settings.rb +15 -0
- data/lib/comfy/templater.rb +62 -0
- data/lib/comfy/version.rb +3 -0
- data/lib/comfy.rb +18 -0
- data/lib/templates/centos/centos.cfg.erb +47 -0
- data/lib/templates/centos/centos.description +20 -0
- data/lib/templates/centos/files/10-ipv6.conf +5 -0
- data/lib/templates/centos/files/check-mk-agent-meta-checks-2.0-1.noarch.rpm +0 -0
- data/lib/templates/centos/files/check-mk-agent-meta-key-1.0-1.noarch.rpm +0 -0
- data/lib/templates/centos/files/cloud.cfg +101 -0
- data/lib/templates/centos/files/fail2ban.local +3 -0
- data/lib/templates/centos/files/getty@ttyS0.service +47 -0
- data/lib/templates/centos/files/grub +11 -0
- data/lib/templates/centos/files/iptables-multiport.local +6 -0
- data/lib/templates/centos/files/jail.local +17 -0
- data/lib/templates/centos/files/krb5.conf +181 -0
- data/lib/templates/centos/files/ntp.conf +61 -0
- data/lib/templates/centos/files/pakiti-2.1.5-1.noarch.rpm +0 -0
- data/lib/templates/centos/files/sshd_config +152 -0
- data/lib/templates/centos/files/xen-domU.conf +1 -0
- data/lib/templates/centos/scripts/init.sh +83 -0
- data/lib/templates/debian/debian.cfg.erb +80 -0
- data/lib/templates/debian/debian.description +28 -0
- data/lib/templates/debian/files/.bashrc +112 -0
- data/lib/templates/debian/files/.gitconfig +7 -0
- data/lib/templates/debian/files/10-ipv6.conf +5 -0
- data/lib/templates/debian/files/DEPOT-GPG-KEY.cfg +32 -0
- data/lib/templates/debian/files/RPM-GPG-KEY-CERIT-SC.cfg +30 -0
- data/lib/templates/debian/files/backports.list +2 -0
- data/lib/templates/debian/files/cerit-cloudinit.list +2 -0
- data/lib/templates/debian/files/cloud.cfg +102 -0
- data/lib/templates/debian/files/depot.list +4 -0
- data/lib/templates/debian/files/depot_all.pref +6 -0
- data/lib/templates/debian/files/depot_check_mk.pref +5 -0
- data/lib/templates/debian/files/fail2ban.local +3 -0
- data/lib/templates/debian/files/getty@ttyS0.service +47 -0
- data/lib/templates/debian/files/grub +34 -0
- data/lib/templates/debian/files/inittab +69 -0
- data/lib/templates/debian/files/interfaces +15 -0
- data/lib/templates/debian/files/iptables-multiport.local +6 -0
- data/lib/templates/debian/files/jail.local +17 -0
- data/lib/templates/debian/files/krb5.conf +181 -0
- data/lib/templates/debian/files/meta-misc.list +2 -0
- data/lib/templates/debian/files/modules +15 -0
- data/lib/templates/debian/files/ntp.conf +61 -0
- data/lib/templates/debian/files/pakiti_2.1.5-2_all.deb +0 -0
- data/lib/templates/debian/files/sshd_config +131 -0
- data/lib/templates/debian/scripts/debian_cloud_script.sh +80 -0
- data/lib/templates/docker/docker.cfg.erb +87 -0
- data/lib/templates/docker/docker.description +21 -0
- data/lib/templates/docker/files/10-ipv6.conf +5 -0
- data/lib/templates/docker/files/DEPOT-GPG-KEY.cfg +32 -0
- data/lib/templates/docker/files/RPM-GPG-KEY-CERIT-SC.cfg +30 -0
- data/lib/templates/docker/files/cloud.cfg +109 -0
- data/lib/templates/docker/files/depot.list +4 -0
- data/lib/templates/docker/files/depot_all.pref +6 -0
- data/lib/templates/docker/files/depot_check_mk.pref +5 -0
- data/lib/templates/docker/files/docker.list +1 -0
- data/lib/templates/docker/files/fail2ban.local +3 -0
- data/lib/templates/docker/files/grub +34 -0
- data/lib/templates/docker/files/interfaces +15 -0
- data/lib/templates/docker/files/iptables-multiport.local +6 -0
- data/lib/templates/docker/files/jail.local +17 -0
- data/lib/templates/docker/files/krb5.conf +181 -0
- data/lib/templates/docker/files/meta-misc.list +2 -0
- data/lib/templates/docker/files/modules +15 -0
- data/lib/templates/docker/files/ntp.conf +61 -0
- data/lib/templates/docker/files/pakiti_2.1.5-2_all.deb +0 -0
- data/lib/templates/docker/files/sshd_config +131 -0
- data/lib/templates/docker/files/ttyS0.conf +11 -0
- data/lib/templates/docker/scripts/init.sh +65 -0
- data/lib/templates/packer.erb +93 -0
- data/lib/templates/scientificlinux/files/10-ipv6.conf +5 -0
- data/lib/templates/scientificlinux/files/check-mk-agent-meta-checks-2.0-1.noarch.rpm +0 -0
- data/lib/templates/scientificlinux/files/check-mk-agent-meta-key-1.0-1.noarch.rpm +0 -0
- data/lib/templates/scientificlinux/files/cloud.cfg +101 -0
- data/lib/templates/scientificlinux/files/fail2ban.local +3 -0
- data/lib/templates/scientificlinux/files/getty@ttyS0.service +47 -0
- data/lib/templates/scientificlinux/files/grub +10 -0
- data/lib/templates/scientificlinux/files/iptables-multiport.local +6 -0
- data/lib/templates/scientificlinux/files/jail.local +17 -0
- data/lib/templates/scientificlinux/files/krb5.conf +181 -0
- data/lib/templates/scientificlinux/files/ntp.conf +61 -0
- data/lib/templates/scientificlinux/files/pakiti-2.1.5-1.noarch.rpm +0 -0
- data/lib/templates/scientificlinux/files/sshd_config +150 -0
- data/lib/templates/scientificlinux/files/xen-domU.conf +1 -0
- data/lib/templates/scientificlinux/scientificlinux.cfg.erb +57 -0
- data/lib/templates/scientificlinux/scientificlinux.description +19 -0
- data/lib/templates/scientificlinux/scripts/init.sh +92 -0
- data/lib/templates/ubuntu/files/10-ipv6.conf +5 -0
- data/lib/templates/ubuntu/files/DEPOT-GPG-KEY.cfg +32 -0
- data/lib/templates/ubuntu/files/RPM-GPG-KEY-CERIT-SC.cfg +30 -0
- data/lib/templates/ubuntu/files/cloud.cfg +109 -0
- data/lib/templates/ubuntu/files/depot.list +4 -0
- data/lib/templates/ubuntu/files/depot_all.pref +6 -0
- data/lib/templates/ubuntu/files/depot_check_mk.pref +5 -0
- data/lib/templates/ubuntu/files/fail2ban.local +3 -0
- data/lib/templates/ubuntu/files/grub +34 -0
- data/lib/templates/ubuntu/files/interfaces +15 -0
- data/lib/templates/ubuntu/files/iptables-multiport.local +6 -0
- data/lib/templates/ubuntu/files/jail.local +17 -0
- data/lib/templates/ubuntu/files/krb5.conf +181 -0
- data/lib/templates/ubuntu/files/meta-misc.list +2 -0
- data/lib/templates/ubuntu/files/modules +15 -0
- data/lib/templates/ubuntu/files/ntp.conf +61 -0
- data/lib/templates/ubuntu/files/pakiti_2.1.5-2_all.deb +0 -0
- data/lib/templates/ubuntu/files/sshd_config +131 -0
- data/lib/templates/ubuntu/files/ttyS0.conf +11 -0
- data/lib/templates/ubuntu/scripts/init.sh +54 -0
- data/lib/templates/ubuntu/ubuntu.cfg.erb +87 -0
- data/lib/templates/ubuntu/ubuntu.description +21 -0
- data/schema/distribution_descriptor.schema +241 -0
- metadata +374 -0
@@ -0,0 +1,93 @@
|
|
1
|
+
{
|
2
|
+
"builders":
|
3
|
+
[
|
4
|
+
<% if @data[:formats].include?('qemu') -%>
|
5
|
+
{
|
6
|
+
"name": "comfy_<%= @data[:distribution] %>-<%= @data[:distro][:version]['major_version'] %>.<%= @data[:distro][:version]['minor_version'] %>_qemu",
|
7
|
+
"type": "qemu",
|
8
|
+
"iso_url": "<%= @data[:distro][:version]['iso_url'] %>",
|
9
|
+
"iso_checksum": "<%= @data[:distro][:version]['iso_checksum'] %>",
|
10
|
+
"iso_checksum_type": "sha256",
|
11
|
+
"output_directory": "<%= @data[:'output-dir'] %>/comfy_<%= @data[:distribution] %>-<%= @data[:distro][:version]['major_version'] %>.<%= @data[:distro][:version]['minor_version'] %>_qemu/",
|
12
|
+
"ssh_wait_timeout": "90m",
|
13
|
+
"shutdown_command": "shutdown -h now",
|
14
|
+
"format": "qcow2",
|
15
|
+
"disk_size": <%= @data[:size] %>,
|
16
|
+
"headless": <%= @data[:headless] %>,
|
17
|
+
"http_directory": "<%= @data[:server_dir] %>",
|
18
|
+
"http_port_min": 8500,
|
19
|
+
"http_port_max": 8550,
|
20
|
+
"ssh_username": "root",
|
21
|
+
"ssh_password": "<%= @data[:password] %>",
|
22
|
+
"vm_name": "comfy_<%= @data[:distribution] %>-<%= @data[:distro][:version]['major_version'] %>.<%= @data[:distro][:version]['minor_version'] %>_qemu.qcow2",
|
23
|
+
<% if @data[:distro]['qemu'] -%>
|
24
|
+
<% @data[:distro]['qemu'].each_pair do |key, value| -%>
|
25
|
+
"<%= key %>":<% if value.is_a? String -%>"<%= value %>"<% else -%><%= value %><% end -%>,
|
26
|
+
<% end -%>
|
27
|
+
<% end -%>
|
28
|
+
"boot_command":
|
29
|
+
[
|
30
|
+
"<esc>",
|
31
|
+
"<wait5>",
|
32
|
+
"<%= @data[:distro]['boot_command'] %>/<%= @data[:distribution] %>.cfg",
|
33
|
+
"<enter>"
|
34
|
+
]
|
35
|
+
}
|
36
|
+
<% end -%>
|
37
|
+
<% if @data[:formats].include?('virtualbox') -%>
|
38
|
+
<% if @data[:formats].include?('qemu') -%>,<% end -%>
|
39
|
+
{
|
40
|
+
"name": "comfy_<%= @data[:distribution] %>-<%= @data[:distro][:version]['major_version'] %>.<%= @data[:distro][:version]['minor_version'] %>_virtualbox",
|
41
|
+
"type": "virtualbox-iso",
|
42
|
+
"iso_url": "<%= @data[:distro][:version]['iso_url'] %>",
|
43
|
+
"iso_checksum": "<%= @data[:distro][:version]['iso_checksum'] %>",
|
44
|
+
"iso_checksum_type": "sha256",
|
45
|
+
"output_directory": "<%= @data[:'output-dir'] %>/comfy_<%= @data[:distribution] %>-<%= @data[:distro][:version]['major_version'] %>.<%= @data[:distro][:version]['minor_version'] %>_virtualbox/",
|
46
|
+
"ssh_wait_timeout": "90m",
|
47
|
+
"shutdown_command": "shutdown -h now",
|
48
|
+
"format": "ova",
|
49
|
+
"disk_size": <%= @data[:size] %>,
|
50
|
+
"headless": <%= @data[:headless] %>,
|
51
|
+
"http_directory": "<%= @data[:server_dir] %>",
|
52
|
+
"http_port_min": 8500,
|
53
|
+
"http_port_max": 8550,
|
54
|
+
"ssh_username": "root",
|
55
|
+
"ssh_password": "<%= @data[:password] %>",
|
56
|
+
"vm_name": "comfy_<%= @data[:distribution] %>-<%= @data[:distro][:version]['major_version'] %>.<%= @data[:distro][:version]['minor_version'] %>_virtualbox",
|
57
|
+
<% if @data[:distro]['virtualbox'] -%>
|
58
|
+
<% @data[:distro]['virtualbox'].each_pair do |key, value| -%>
|
59
|
+
"<%= key %>":<% if value.is_a? String -%>"<%= value %>"<% else -%><%= value %><% end -%>,
|
60
|
+
<% end -%>
|
61
|
+
<% end -%>
|
62
|
+
"boot_command":
|
63
|
+
[
|
64
|
+
"<esc>",
|
65
|
+
"<wait5>",
|
66
|
+
"<%= @data[:distro]['boot_command'] %>/<%= @data[:distribution] %>.cfg",
|
67
|
+
"<enter>"
|
68
|
+
]
|
69
|
+
}
|
70
|
+
<% end -%>
|
71
|
+
]<% if @data[:provisioners] -%>,
|
72
|
+
|
73
|
+
"provisioners":
|
74
|
+
[
|
75
|
+
<% @data[:provisioners][:files].each_with_index do |file,i| -%>
|
76
|
+
{
|
77
|
+
"type": "file",
|
78
|
+
"source": "<%= file %>",
|
79
|
+
"destination" : "/root/<%= file.split('/').last %>"
|
80
|
+
}<%if i != (@data[:provisioners][:files].size - 1) || (@data[:provisioners][:scripts] && !@data[:provisioners][:scripts].empty?) %>,
|
81
|
+
<% end -%>
|
82
|
+
<% end -%>
|
83
|
+
|
84
|
+
<% @data[:provisioners][:scripts].each_with_index do |script,i| -%>
|
85
|
+
{
|
86
|
+
"type": "shell",
|
87
|
+
"script": "<%= script %>"
|
88
|
+
}<%unless i == (@data[:provisioners][:scripts].size - 1) %>,
|
89
|
+
<% end -%>
|
90
|
+
<% end -%>
|
91
|
+
]
|
92
|
+
<% end -%>
|
93
|
+
}
|
Binary file
|
@@ -0,0 +1,101 @@
|
|
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: sshd
|
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
|
+
package_update: True
|
20
|
+
package_upgrade: True
|
21
|
+
package_reboot_if_required: True
|
22
|
+
|
23
|
+
# work only with OpenNebula, use network based datasource,
|
24
|
+
# so that we can successfully resolve IPv4 based hostname
|
25
|
+
disable_ec2_metadata: True
|
26
|
+
datasource_list: ['OpenNebula']
|
27
|
+
datasource:
|
28
|
+
OpenNebula:
|
29
|
+
dsmode: net
|
30
|
+
|
31
|
+
# The modules that run in the 'init' stage
|
32
|
+
cloud_init_modules:
|
33
|
+
- migrator
|
34
|
+
- seed_random
|
35
|
+
- bootcmd
|
36
|
+
- write-files
|
37
|
+
- growpart
|
38
|
+
- resizefs
|
39
|
+
- set_hostname
|
40
|
+
- update_hostname
|
41
|
+
- update_etc_hosts
|
42
|
+
- ca-certs
|
43
|
+
- rsyslog
|
44
|
+
- users-groups
|
45
|
+
- ssh
|
46
|
+
|
47
|
+
# The modules that run in the 'config' stage
|
48
|
+
cloud_config_modules:
|
49
|
+
# Emit the cloud config ready event
|
50
|
+
# this can be used by upstart jobs for 'start on cloud-config'.
|
51
|
+
- emit_upstart
|
52
|
+
- disk_setup
|
53
|
+
- mounts
|
54
|
+
- ssh-import-id
|
55
|
+
- locale
|
56
|
+
- set-passwords
|
57
|
+
- grub-dpkg
|
58
|
+
- apt-pipelining
|
59
|
+
- apt-configure
|
60
|
+
- package-update-upgrade-install
|
61
|
+
- landscape
|
62
|
+
- timezone
|
63
|
+
- puppet
|
64
|
+
- chef
|
65
|
+
- salt-minion
|
66
|
+
- mcollective
|
67
|
+
- disable-ec2-metadata
|
68
|
+
- runcmd
|
69
|
+
- byobu
|
70
|
+
|
71
|
+
# The modules that run in the 'final' stage
|
72
|
+
cloud_final_modules:
|
73
|
+
- rightscale_userdata
|
74
|
+
- scripts-per-once
|
75
|
+
- scripts-per-boot
|
76
|
+
- scripts-per-instance
|
77
|
+
- scripts-user
|
78
|
+
- ssh-authkey-fingerprints
|
79
|
+
- keys-to-console
|
80
|
+
- phone-home
|
81
|
+
- final-message
|
82
|
+
- power-state-change
|
83
|
+
|
84
|
+
# System and/or distro specific settings
|
85
|
+
# (not accessible to handlers/transforms)
|
86
|
+
system_info:
|
87
|
+
# This will affect which distro class gets used
|
88
|
+
distro: rhel
|
89
|
+
# Other config here will be given to the distro class and/or path classes
|
90
|
+
paths:
|
91
|
+
cloud_dir: /var/lib/cloud/
|
92
|
+
templates_dir: /etc/cloud/templates/
|
93
|
+
upstart_dir: /etc/init/
|
94
|
+
package_mirrors:
|
95
|
+
- arches: [default]
|
96
|
+
failsafe:
|
97
|
+
primary: http://http.us.debian.org/debian/
|
98
|
+
security: http://security.debian.org/
|
99
|
+
ssh_svcname: sshd
|
100
|
+
|
101
|
+
# vim:syntax=yaml
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# This file is part of systemd.
|
2
|
+
#
|
3
|
+
# systemd is free software; you can redistribute it and/or modify it
|
4
|
+
# under the terms of the GNU Lesser General Public License as published by
|
5
|
+
# the Free Software Foundation; either version 2.1 of the License, or
|
6
|
+
# (at your option) any later version.
|
7
|
+
|
8
|
+
[Unit]
|
9
|
+
Description=Getty on %I
|
10
|
+
Documentation=man:agetty(8) man:systemd-getty-generator(8)
|
11
|
+
Documentation=http://0pointer.de/blog/projects/serial-console.html
|
12
|
+
After=systemd-user-sessions.service plymouth-quit-wait.service
|
13
|
+
After=rc-local.service
|
14
|
+
|
15
|
+
# If additional gettys are spawned during boot then we should make
|
16
|
+
# sure that this is synchronized before getty.target, even though
|
17
|
+
# getty.target didn't actually pull it in.
|
18
|
+
Before=getty.target
|
19
|
+
IgnoreOnIsolate=yes
|
20
|
+
|
21
|
+
# On systems without virtual consoles, don't start any getty. Note
|
22
|
+
# that serial gettys are covered by serial-getty@.service, not this
|
23
|
+
# unit.
|
24
|
+
ConditionPathExists=/dev/tty0
|
25
|
+
|
26
|
+
[Service]
|
27
|
+
# the VT is cleared by TTYVTDisallocate
|
28
|
+
ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM
|
29
|
+
Type=idle
|
30
|
+
Restart=always
|
31
|
+
RestartSec=0
|
32
|
+
UtmpIdentifier=%I
|
33
|
+
TTYPath=/dev/%I
|
34
|
+
TTYReset=yes
|
35
|
+
TTYVHangup=yes
|
36
|
+
TTYVTDisallocate=yes
|
37
|
+
KillMode=process
|
38
|
+
IgnoreSIGPIPE=no
|
39
|
+
SendSIGHUP=yes
|
40
|
+
|
41
|
+
# Unset locale for the console getty since the console has problems
|
42
|
+
# displaying some internationalized messages.
|
43
|
+
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
|
44
|
+
|
45
|
+
[Install]
|
46
|
+
WantedBy=getty.target
|
47
|
+
Alias=getty@ttys0.service
|
@@ -0,0 +1,10 @@
|
|
1
|
+
GRUB_TIMEOUT=5
|
2
|
+
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
|
3
|
+
GRUB_DEFAULT=saved
|
4
|
+
GRUB_DISABLE_SUBMENU=true
|
5
|
+
GRUB_TERMINAL_OUTPUT="console"
|
6
|
+
GRUB_CMDLINE_LINUX="vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0 console=tty0 console=ttys0,115200n8"
|
7
|
+
GRUB_DISABLE_RECOVERY="true"
|
8
|
+
GRUB_TERMINAL="serial"
|
9
|
+
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
|
10
|
+
|
@@ -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,61 @@
|
|
1
|
+
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
|
2
|
+
|
3
|
+
driftfile /var/lib/ntp/ntp.drift
|
4
|
+
|
5
|
+
|
6
|
+
# Enable this if you want statistics to be logged.
|
7
|
+
statsdir /var/log/ntpstats/
|
8
|
+
|
9
|
+
statistics loopstats peerstats clockstats
|
10
|
+
filegen loopstats file loopstats type day enable
|
11
|
+
filegen peerstats file peerstats type day enable
|
12
|
+
filegen clockstats file clockstats type day enable
|
13
|
+
|
14
|
+
|
15
|
+
# You do need to talk to an NTP server or two (or three).
|
16
|
+
server tik.cesnet.cz
|
17
|
+
server tak.cesnet.cz
|
18
|
+
server ntp.muni.cz
|
19
|
+
server time.fi.muni.cz
|
20
|
+
|
21
|
+
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
|
22
|
+
# pick a different set every time it starts up. Please consider joining the
|
23
|
+
# pool: <http://www.pool.ntp.org/join.html>
|
24
|
+
#server 0.debian.pool.ntp.org iburst
|
25
|
+
#server 1.debian.pool.ntp.org iburst
|
26
|
+
#server 2.debian.pool.ntp.org iburst
|
27
|
+
#server 3.debian.pool.ntp.org iburst
|
28
|
+
|
29
|
+
|
30
|
+
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
|
31
|
+
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
|
32
|
+
# might also be helpful.
|
33
|
+
#
|
34
|
+
# Note that "restrict" applies to both servers and clients, so a configuration
|
35
|
+
# that might be intended to block requests from certain clients could also end
|
36
|
+
# up blocking replies from your own upstream servers.
|
37
|
+
|
38
|
+
# By default, exchange time with everybody, but don't allow configuration.
|
39
|
+
restrict -4 default kod notrap nomodify nopeer noquery
|
40
|
+
restrict -6 default kod notrap nomodify nopeer noquery
|
41
|
+
|
42
|
+
# Local users may interrogate the ntp server more closely.
|
43
|
+
restrict 127.0.0.1
|
44
|
+
restrict ::1
|
45
|
+
|
46
|
+
# Clients from this (example!) subnet have unlimited access, but only if
|
47
|
+
# cryptographically authenticated.
|
48
|
+
#restrict 192.168.123.0 mask 255.255.255.0 notrust
|
49
|
+
|
50
|
+
|
51
|
+
# If you want to provide time to your local subnet, change the next line.
|
52
|
+
# (Again, the address is an example only.)
|
53
|
+
#broadcast 192.168.123.255
|
54
|
+
|
55
|
+
# If you want to listen to time broadcasts on your local subnet, de-comment the
|
56
|
+
# next lines. Please do this only if you trust everybody on the network!
|
57
|
+
#disable auth
|
58
|
+
#broadcastclient
|
59
|
+
|
60
|
+
# Try to avoid NTP amplification attacks
|
61
|
+
disable monitor
|
Binary file
|
@@ -0,0 +1,150 @@
|
|
1
|
+
# This is the sshd server system-wide configuration file. See
|
2
|
+
# sshd_config(5) for more information.
|
3
|
+
|
4
|
+
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin
|
5
|
+
|
6
|
+
# The strategy used for options in the default sshd_config shipped with
|
7
|
+
# OpenSSH is to specify options with their default value where
|
8
|
+
# possible, but leave them commented. Uncommented options override the
|
9
|
+
# default value.
|
10
|
+
|
11
|
+
# If you want to change the port on a SELinux system, you have to tell
|
12
|
+
# SELinux about this change.
|
13
|
+
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
|
14
|
+
#
|
15
|
+
#Port 22
|
16
|
+
AddressFamily inet
|
17
|
+
#ListenAddress 0.0.0.0
|
18
|
+
#ListenAddress ::
|
19
|
+
|
20
|
+
# The default requires explicit activation of protocol 1
|
21
|
+
#Protocol 2
|
22
|
+
|
23
|
+
# HostKey for protocol version 1
|
24
|
+
#HostKey /etc/ssh/ssh_host_key
|
25
|
+
# HostKeys for protocol version 2
|
26
|
+
HostKey /etc/ssh/ssh_host_rsa_key
|
27
|
+
#HostKey /etc/ssh/ssh_host_dsa_key
|
28
|
+
HostKey /etc/ssh/ssh_host_ecdsa_key
|
29
|
+
HostKey /etc/ssh/ssh_host_ed25519_key
|
30
|
+
|
31
|
+
# Lifetime and size of ephemeral version 1 server key
|
32
|
+
#KeyRegenerationInterval 1h
|
33
|
+
#ServerKeyBits 1024
|
34
|
+
|
35
|
+
# Ciphers and keying
|
36
|
+
#RekeyLimit default none
|
37
|
+
|
38
|
+
# Logging
|
39
|
+
# obsoletes QuietMode and FascistLogging
|
40
|
+
#SyslogFacility AUTH
|
41
|
+
SyslogFacility AUTHPRIV
|
42
|
+
#LogLevel INFO
|
43
|
+
|
44
|
+
# Authentication:
|
45
|
+
|
46
|
+
#LoginGraceTime 2m
|
47
|
+
#PermitRootLogin yes
|
48
|
+
#StrictModes yes
|
49
|
+
#MaxAuthTries 6
|
50
|
+
#MaxSessions 10
|
51
|
+
|
52
|
+
#RSAAuthentication yes
|
53
|
+
#PubkeyAuthentication yes
|
54
|
+
|
55
|
+
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
|
56
|
+
# but this is overridden so installations will only check .ssh/authorized_keys
|
57
|
+
AuthorizedKeysFile .ssh/authorized_keys
|
58
|
+
|
59
|
+
#AuthorizedPrincipalsFile none
|
60
|
+
|
61
|
+
#AuthorizedKeysCommand none
|
62
|
+
#AuthorizedKeysCommandUser nobody
|
63
|
+
|
64
|
+
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
|
65
|
+
#RhostsRSAAuthentication no
|
66
|
+
# similar for protocol version 2
|
67
|
+
#HostbasedAuthentication no
|
68
|
+
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
69
|
+
# RhostsRSAAuthentication and HostbasedAuthentication
|
70
|
+
#IgnoreUserKnownHosts no
|
71
|
+
# Don't read the user's ~/.rhosts and ~/.shosts files
|
72
|
+
#IgnoreRhosts yes
|
73
|
+
|
74
|
+
# To disable tunneled clear text passwords, change to no here!
|
75
|
+
#PermitEmptyPasswords no
|
76
|
+
PasswordAuthentication no
|
77
|
+
|
78
|
+
# Change to no to disable s/key passwords
|
79
|
+
#ChallengeResponseAuthentication yes
|
80
|
+
ChallengeResponseAuthentication no
|
81
|
+
|
82
|
+
# Kerberos options
|
83
|
+
#KerberosAuthentication no
|
84
|
+
#KerberosOrLocalPasswd yes
|
85
|
+
#KerberosTicketCleanup yes
|
86
|
+
#KerberosGetAFSToken no
|
87
|
+
#KerberosUseKuserok yes
|
88
|
+
|
89
|
+
# GSSAPI options
|
90
|
+
GSSAPIAuthentication yes
|
91
|
+
GSSAPICleanupCredentials yes
|
92
|
+
#GSSAPIStrictAcceptorCheck yes
|
93
|
+
#GSSAPIKeyExchange no
|
94
|
+
#GSSAPIEnablek5users no
|
95
|
+
|
96
|
+
# Set this to 'yes' to enable PAM authentication, account processing,
|
97
|
+
# and session processing. If this is enabled, PAM authentication will
|
98
|
+
# be allowed through the ChallengeResponseAuthentication and
|
99
|
+
# PasswordAuthentication. Depending on your PAM configuration,
|
100
|
+
# PAM authentication via ChallengeResponseAuthentication may bypass
|
101
|
+
# the setting of "PermitRootLogin without-password".
|
102
|
+
# If you just want the PAM account and session checks to run without
|
103
|
+
# PAM authentication, then enable this but set PasswordAuthentication
|
104
|
+
# and ChallengeResponseAuthentication to 'no'.
|
105
|
+
# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several
|
106
|
+
# problems.
|
107
|
+
UsePAM yes
|
108
|
+
|
109
|
+
#AllowAgentForwarding yes
|
110
|
+
#AllowTcpForwarding yes
|
111
|
+
#GatewayPorts no
|
112
|
+
X11Forwarding yes
|
113
|
+
#X11DisplayOffset 10
|
114
|
+
#X11UseLocalhost yes
|
115
|
+
#PermitTTY yes
|
116
|
+
PrintMotd yes
|
117
|
+
#PrintLastLog yes
|
118
|
+
#TCPKeepAlive yes
|
119
|
+
#UseLogin no
|
120
|
+
UsePrivilegeSeparation sandbox # Default for new installations.
|
121
|
+
#PermitUserEnvironment no
|
122
|
+
#Compression delayed
|
123
|
+
ClientAliveInterval 30
|
124
|
+
ClientAliveCountMax 5
|
125
|
+
#ShowPatchLevel no
|
126
|
+
#UseDNS yes
|
127
|
+
#PidFile /var/run/sshd.pid
|
128
|
+
#MaxStartups 10:30:100
|
129
|
+
#PermitTunnel no
|
130
|
+
#ChrootDirectory none
|
131
|
+
#VersionAddendum none
|
132
|
+
|
133
|
+
# no default banner path
|
134
|
+
#Banner none
|
135
|
+
|
136
|
+
# Accept locale-related environment variables
|
137
|
+
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
|
138
|
+
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
|
139
|
+
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
|
140
|
+
AcceptEnv XMODIFIERS
|
141
|
+
|
142
|
+
# override default of no subsystems
|
143
|
+
Subsystem sftp /usr/libexec/openssh/sftp-server
|
144
|
+
|
145
|
+
# Example of overriding settings on a per-user basis
|
146
|
+
#Match User anoncvs
|
147
|
+
# X11Forwarding no
|
148
|
+
# AllowTcpForwarding no
|
149
|
+
# PermitTTY no
|
150
|
+
# ForceCommand cvs server
|
@@ -0,0 +1 @@
|
|
1
|
+
add_drivers+="xen-blkfront xen-netfront xen-kbdfront"
|