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.
- 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,112 @@
|
|
|
1
|
+
# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
2
|
+
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
|
3
|
+
# for examples
|
|
4
|
+
|
|
5
|
+
# If not running interactively, don't do anything
|
|
6
|
+
case $- in
|
|
7
|
+
*i*) ;;
|
|
8
|
+
*) return;;
|
|
9
|
+
esac
|
|
10
|
+
|
|
11
|
+
# don't put duplicate lines or lines starting with space in the history.
|
|
12
|
+
# See bash(1) for more options
|
|
13
|
+
HISTCONTROL=ignoreboth
|
|
14
|
+
|
|
15
|
+
# append to the history file, don't overwrite it
|
|
16
|
+
shopt -s histappend
|
|
17
|
+
|
|
18
|
+
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
19
|
+
HISTSIZE=1000
|
|
20
|
+
HISTFILESIZE=2000
|
|
21
|
+
|
|
22
|
+
# check the window size after each command and, if necessary,
|
|
23
|
+
# update the values of LINES and COLUMNS.
|
|
24
|
+
shopt -s checkwinsize
|
|
25
|
+
|
|
26
|
+
# If set, the pattern "**" used in a pathname expansion context will
|
|
27
|
+
# match all files and zero or more directories and subdirectories.
|
|
28
|
+
#shopt -s globstar
|
|
29
|
+
|
|
30
|
+
# make less more friendly for non-text input files, see lesspipe(1)
|
|
31
|
+
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
|
32
|
+
|
|
33
|
+
# set variable identifying the chroot you work in (used in the prompt below)
|
|
34
|
+
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
|
35
|
+
debian_chroot=$(cat /etc/debian_chroot)
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
# set a fancy prompt (non-color, unless we know we "want" color)
|
|
39
|
+
case "$TERM" in
|
|
40
|
+
xterm-color) color_prompt=yes;;
|
|
41
|
+
esac
|
|
42
|
+
|
|
43
|
+
# uncomment for a colored prompt, if the terminal has the capability; turned
|
|
44
|
+
# off by default to not distract the user: the focus in a terminal window
|
|
45
|
+
# should be on the output of commands, not on the prompt
|
|
46
|
+
force_color_prompt=yes
|
|
47
|
+
|
|
48
|
+
if [ -n "$force_color_prompt" ]; then
|
|
49
|
+
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
|
50
|
+
# We have color support; assume it's compliant with Ecma-48
|
|
51
|
+
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
|
52
|
+
# a case would tend to support setf rather than setaf.)
|
|
53
|
+
color_prompt=yes
|
|
54
|
+
else
|
|
55
|
+
color_prompt=
|
|
56
|
+
fi
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
if [ "$color_prompt" = yes ]; then
|
|
60
|
+
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
|
61
|
+
else
|
|
62
|
+
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
|
63
|
+
fi
|
|
64
|
+
unset color_prompt force_color_prompt
|
|
65
|
+
|
|
66
|
+
# If this is an xterm set the title to user@host:dir
|
|
67
|
+
case "$TERM" in
|
|
68
|
+
xterm*|rxvt*)
|
|
69
|
+
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
|
70
|
+
;;
|
|
71
|
+
*)
|
|
72
|
+
;;
|
|
73
|
+
esac
|
|
74
|
+
|
|
75
|
+
# enable color support of ls and also add handy aliases
|
|
76
|
+
if [ -x /usr/bin/dircolors ]; then
|
|
77
|
+
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
|
78
|
+
alias ls='ls --color=auto'
|
|
79
|
+
#alias dir='dir --color=auto'
|
|
80
|
+
#alias vdir='vdir --color=auto'
|
|
81
|
+
|
|
82
|
+
#alias grep='grep --color=auto'
|
|
83
|
+
#alias fgrep='fgrep --color=auto'
|
|
84
|
+
#alias egrep='egrep --color=auto'
|
|
85
|
+
fi
|
|
86
|
+
|
|
87
|
+
# some more ls aliases
|
|
88
|
+
#alias ll='ls -l'
|
|
89
|
+
#alias la='ls -A'
|
|
90
|
+
#alias l='ls -CF'
|
|
91
|
+
|
|
92
|
+
# Alias definitions.
|
|
93
|
+
# You may want to put all your additions into a separate file like
|
|
94
|
+
# ~/.bash_aliases, instead of adding them here directly.
|
|
95
|
+
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
|
96
|
+
|
|
97
|
+
if [ -f ~/.bash_aliases ]; then
|
|
98
|
+
. ~/.bash_aliases
|
|
99
|
+
fi
|
|
100
|
+
|
|
101
|
+
# enable programmable completion features (you don't need to enable
|
|
102
|
+
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
|
103
|
+
# sources /etc/bash.bashrc).
|
|
104
|
+
if ! shopt -oq posix; then
|
|
105
|
+
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
|
106
|
+
. /usr/share/bash-completion/bash_completion
|
|
107
|
+
elif [ -f /etc/bash_completion ]; then
|
|
108
|
+
. /etc/bash_completion
|
|
109
|
+
fi
|
|
110
|
+
fi
|
|
111
|
+
|
|
112
|
+
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
|
|
@@ -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++9hAMd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8/u42xlv8aOAqf6Q7osShMj
|
|
27
|
+
CROefhLCidIbW10erf5FjHkukcysuTO4FJcsnJHWy+F0jgubYza/mQLK6qY9ShIq
|
|
28
|
+
OEkYIXo=
|
|
29
|
+
=oPbY
|
|
30
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
|
@@ -0,0 +1,102 @@
|
|
|
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: debian
|
|
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: [default]
|
|
97
|
+
failsafe:
|
|
98
|
+
primary: http://http.us.debian.org/debian/
|
|
99
|
+
security: http://security.debian.org/
|
|
100
|
+
ssh_svcname: ssh
|
|
101
|
+
|
|
102
|
+
# 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,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_TIMEOUT=5
|
|
8
|
+
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
|
|
9
|
+
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttys0,115200n8"
|
|
10
|
+
GRUB_CMDLINE_LINUX=""
|
|
11
|
+
GRUB_TERMINAL=console
|
|
12
|
+
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
|
|
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=console
|
|
21
|
+
|
|
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,69 @@
|
|
|
1
|
+
# /etc/inittab: init(8) configuration.
|
|
2
|
+
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
|
|
3
|
+
|
|
4
|
+
# The default runlevel.
|
|
5
|
+
id:2:initdefault:
|
|
6
|
+
|
|
7
|
+
# Boot-time system configuration/initialization script.
|
|
8
|
+
# This is run first except when booting in emergency (-b) mode.
|
|
9
|
+
si::sysinit:/etc/init.d/rcS
|
|
10
|
+
|
|
11
|
+
# What to do in single-user mode.
|
|
12
|
+
~~:S:wait:/sbin/sulogin
|
|
13
|
+
|
|
14
|
+
# /etc/init.d executes the S and K scripts upon change
|
|
15
|
+
# of runlevel.
|
|
16
|
+
#
|
|
17
|
+
# Runlevel 0 is halt.
|
|
18
|
+
# Runlevel 1 is single-user.
|
|
19
|
+
# Runlevels 2-5 are multi-user.
|
|
20
|
+
# Runlevel 6 is reboot.
|
|
21
|
+
|
|
22
|
+
l0:0:wait:/etc/init.d/rc 0
|
|
23
|
+
l1:1:wait:/etc/init.d/rc 1
|
|
24
|
+
l2:2:wait:/etc/init.d/rc 2
|
|
25
|
+
l3:3:wait:/etc/init.d/rc 3
|
|
26
|
+
l4:4:wait:/etc/init.d/rc 4
|
|
27
|
+
l5:5:wait:/etc/init.d/rc 5
|
|
28
|
+
l6:6:wait:/etc/init.d/rc 6
|
|
29
|
+
# Normally not reached, but fallthrough in case of emergency.
|
|
30
|
+
z6:6:respawn:/sbin/sulogin
|
|
31
|
+
|
|
32
|
+
# What to do when CTRL-ALT-DEL is pressed.
|
|
33
|
+
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
|
|
34
|
+
|
|
35
|
+
# Action on special keypress (ALT-UpArrow).
|
|
36
|
+
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
|
|
37
|
+
|
|
38
|
+
# What to do when the power fails/returns.
|
|
39
|
+
pf::powerwait:/etc/init.d/powerfail start
|
|
40
|
+
pn::powerfailnow:/etc/init.d/powerfail now
|
|
41
|
+
po::powerokwait:/etc/init.d/powerfail stop
|
|
42
|
+
|
|
43
|
+
# /sbin/getty invocations for the runlevels.
|
|
44
|
+
#
|
|
45
|
+
# The "id" field MUST be the same as the last
|
|
46
|
+
# characters of the device (after "tty").
|
|
47
|
+
#
|
|
48
|
+
# Format:
|
|
49
|
+
# <id>:<runlevels>:<action>:<process>
|
|
50
|
+
#
|
|
51
|
+
# Note that on most Debian systems tty7 is used by the X Window System,
|
|
52
|
+
# so if you want to add more getty's go ahead but skip tty7 if you run X.
|
|
53
|
+
#
|
|
54
|
+
1:2345:respawn:/sbin/getty 38400 tty1
|
|
55
|
+
2:23:respawn:/sbin/getty 38400 tty2
|
|
56
|
+
3:23:respawn:/sbin/getty 38400 tty3
|
|
57
|
+
4:23:respawn:/sbin/getty 38400 tty4
|
|
58
|
+
5:23:respawn:/sbin/getty 38400 tty5
|
|
59
|
+
6:23:respawn:/sbin/getty 38400 tty6
|
|
60
|
+
|
|
61
|
+
# Example how to put a getty on a serial line (for a terminal)
|
|
62
|
+
#
|
|
63
|
+
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
|
|
64
|
+
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
|
|
65
|
+
ge0:2345:respawn:/sbin/mingetty --autologin root ttyS0 linux
|
|
66
|
+
#ge1:2345:respawn:/sbin/mingetty ttyS0 linux
|
|
67
|
+
# Example how to put a getty on a modem line.
|
|
68
|
+
#
|
|
69
|
+
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
|
|
@@ -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,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
|
+
|