debian - Using Puppet do deploy Apt-Dater -


i configured puppet apt-dater-manager using following description:

node 'puppet' { class { 'apt_dater': role => 'manager', manager_ssh_key => template('site/apt-dater.priv.key'); } } 

then added host

class { 'apt_dater': customer => 'test', ssh_key_type => 'ssh-rsa', ssh_key => template('site/apt-dater.pub.key'); } 

well, works - apt-dater , apt-dater-host being installed - if want start apt-dater i'm getting error:

error on loading config file /root/.config/apt-dater/hosts.conf

the file exists:

 -rw------- 1 root root 0 jan 11 22:00 /root/.config/apt-dater/hosts.conf 

but file empty

how can add configured hosts automatically?

so collect resources clients first.

class apt-dater::client {   @apt-dater::register{ "$hostname": } }  # collect hostnames: apt-dater::client <<| |>> 

this on apt-dater/manifests/client.pp , include on client nodes.

then can use hostnames build apt-dater/hosts.conf using concat fragment

concat::fragment{     target  => "/somepath/apt-dater/hosts.conf",     content => "apt-dater@${hostname};", } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -