I wanted to create TeamSpeak 3 module for my raspberryPi but teamspeak is not supported on ARM so I chose to create mumble server instead. It seems that the mumble-server configuration file doesn't accept my edits so this should basically work, but I was too lazy to figure it out why for example the welcome message didn't change.
Inside puppet folder:
Under my modules folder I created "mumble" folder and inside manifests there is the init.pp file. Inside init.pp:
class mumble {
package { 'mumble':
ensure => installed,
}
}
/Desktop/puppet$ sudo puppet apply --modulepath modules/ -e 'class {"mumble":}'
And it worked.
Inside my mumble folder beside manifests I create folder named templates. There I want to copy mumble server configuration file from /etc
$ sudo cp /etc/mumble-server.ini /home/username/Desktop/puppet/modules/mumble/templates
And now back to the init.pp file
class mumble {
package { 'mumble-server':
ensure => installed,
before => File ['/etc/mumble-server.ini'],
}
package { 'mumble':
ensure => installed,
}
file { 'mumble-server.ini':
path => '/etc/mumble-server.ini',
ensure => present,
content => template('mumble/mumble-server.ini.erb'),
require => Package ['mumble-server'],
}
service { mumble-server:
require => Package ['mumble-server'],
ensure => running,
notify => Service["mumble-server"],
}
}
$ sudo puppet apply --modulepath modules/ -e 'class {"mumble":}'
And it worked.
Ei kommentteja:
Lähetä kommentti