put everything at the right location

This commit is contained in:
mh 2010-09-01 11:24:17 +02:00
parent 9210670776
commit 400cc293c8
4 changed files with 33 additions and 35 deletions

View file

@ -1,35 +0,0 @@
define tinc::vpn::node_key_priv(
$ensure = present,
$netname = 'ring0',
$key = ''
){
# put key into /etc/tinc/${netname}/rsa_key.priv
file{"/etc/tinc/${netname}/rsa_key.priv":
source => "puppet:///modules/site-tinc/keys/$fqdn/rsa_key.priv",
owner => root, group => 0, mode => 0644;
}
}
define tinc::vpn::node_key_pub(
$ensure = present,
$netname = 'ring0',
$key = ''
){
# put key into /etc/tinc/${netname}/rsa_key.pub
file{"/etc/tinc/${netname}/rsa_key.pub":
source => "puppet:///modules/site-tinc/keys/$fqdn/rsa_key.pub",
owner => root, group => 0, mode => 0644;
}
}
define tinc::vpn::node_keys (
$ensure = present,
$netname = 'ring0'
){
# add ${name} to file /etc/tinc/nets.boot => autostart
# tinc::base::add_to_nets.boot{"${name}":}
tinc::vpn::node_key_priv{"${name}": }
tinc::vpn::node_key_pub{"${name}": }
}

View file

@ -0,0 +1,11 @@
define tinc::vpn::node_key_priv(
$ensure = present,
$netname = 'ring0',
$key = ''
){
# put key into /etc/tinc/${netname}/rsa_key.priv
file{"/etc/tinc/${netname}/rsa_key.priv":
source => "puppet:///modules/site-tinc/keys/$fqdn/rsa_key.priv",
owner => root, group => 0, mode => 0644;
}
}

View file

@ -0,0 +1,11 @@
define tinc::vpn::node_key_pub(
$ensure = present,
$netname = 'ring0',
$key = ''
){
# put key into /etc/tinc/${netname}/rsa_key.pub
file{"/etc/tinc/${netname}/rsa_key.pub":
source => "puppet:///modules/site-tinc/keys/$fqdn/rsa_key.pub",
owner => root, group => 0, mode => 0644;
}
}

View file

@ -0,0 +1,11 @@
define tinc::vpn::node_keys (
$ensure = present,
$netname = 'ring0'
){
# add ${name} to file /etc/tinc/nets.boot => autostart
# tinc::base::add_to_nets.boot{"${name}":}
tinc::vpn::node_key_priv{"${name}": }
tinc::vpn::node_key_pub{"${name}": }
}