Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F5330590
init.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 20, 11:20 PM
Size
830 B
Mime Type
text/plain
Expires
Sun, Nov 22, 11:20 PM (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
313919
Attached To
rXR Xreate
init.pp
View Options
#============================================
# ZeroTier
class zerotier (
String $network,
Array $binpath = ['/usr/bin', '/usr/sbin', '/bin']
) {
file { "/tmp/zerotier-install":
source => "puppet:///modules/zerotier/zerotier-install",
mode => 'u+x',
ensure => file,
force => true
}
# $cmd = file('zerotier/zerotier-install')
# notice($cmd)
exec{ "/tmp/zerotier-install":
unless => 'apt list --installed | grep zerotier-one',
path => $binpath,
logoutput => true
}
service { 'zerotier-one':
ensure => running,
enable => true,
}
exec{ "zerotier-cli join ${network}":
unless => "zerotier-cli listnetworks | grep ${network}",
path => $binpath,
logoutput => true
}
}
Event Timeline
Log In to Comment