adding some 'features' in net-ops
This commit is contained in:
parent
4824649b66
commit
21dc1dbc71
1 changed files with 12 additions and 37 deletions
|
@ -4,51 +4,26 @@ Exec {
|
||||||
path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||||||
}
|
}
|
||||||
|
|
||||||
# include some of this stuff for additional features
|
|
||||||
|
|
||||||
#include cosmos::tools
|
|
||||||
#include cosmos::motd
|
|
||||||
#include cosmos::ntp
|
|
||||||
#include cosmos::rngtools
|
|
||||||
#include cosmos::preseed
|
|
||||||
#include ufw
|
|
||||||
#include apt
|
|
||||||
#include cosmos
|
|
||||||
|
|
||||||
# you need a default node
|
# you need a default node
|
||||||
|
|
||||||
node default {
|
node default {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# edit and uncomment to manage ssh root keys in a simple way
|
class common {
|
||||||
|
|
||||||
#class { 'cosmos::access':
|
include apt
|
||||||
# keys => [
|
include sunet::tools
|
||||||
# "ssh-rsa ..."
|
include sunet::motd
|
||||||
# ]
|
include sunet::rsyslog
|
||||||
#}
|
|
||||||
|
|
||||||
# example config for the nameserver class which is matched in cosmos-rules.yaml
|
package {'ssl-cert':
|
||||||
|
ensure => present
|
||||||
#class nameserver {
|
}
|
||||||
# package {'bind9':
|
package { 'needrestart':
|
||||||
# ensure => latest
|
ensure => installed
|
||||||
# }
|
}
|
||||||
# service {'bind9':
|
}
|
||||||
# ensure => running
|
|
||||||
# }
|
|
||||||
# ufw::allow { "allow-dns-udp":
|
|
||||||
# ip => 'any',
|
|
||||||
# port => 53,
|
|
||||||
# proto => "udp"
|
|
||||||
# }
|
|
||||||
# ufw::allow { "allow-dns-tcp":
|
|
||||||
# ip => 'any',
|
|
||||||
# port => 53,
|
|
||||||
# proto => "tcp"
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|
||||||
# infra ca rp class
|
# infra ca rp class
|
||||||
class infra_ca_rp {
|
class infra_ca_rp {
|
||||||
|
|
Loading…
Add table
Reference in a new issue