put everything at the right location
This commit is contained in:
parent
9210670776
commit
400cc293c8
4 changed files with 33 additions and 35 deletions
|
@ -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}": }
|
||||
}
|
||||
|
11
manifests/vpn/node_key_priv.pp
Normal file
11
manifests/vpn/node_key_priv.pp
Normal 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;
|
||||
}
|
||||
}
|
11
manifests/vpn/node_key_pub.pp
Normal file
11
manifests/vpn/node_key_pub.pp
Normal 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;
|
||||
}
|
||||
}
|
11
manifests/vpn/node_keys.pp
Normal file
11
manifests/vpn/node_keys.pp
Normal 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}": }
|
||||
}
|
||||
|
Loading…
Reference in a new issue