[Puppet Users] run puppet-agent once per day specific range time.

2018-03-20 Thread Ren
Hey everyone, 


I am looking the best way to implement overall puppet-agent (v4.9.2) to run 
only once per day during a specific time. 
ie:  between 4 hours  > 8 hours.

what do you suggest? should I go with to implement a cron type or something 
using a funciton schedule? 

Do you have any examples? 

Thank you very much . 
-r 


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/334cb9f8-24d1-46a0-8307-9f0f3c489c59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] TrustedInformation expected a certificate - issue

2017-10-10 Thread Ren
Hello everyone. 

my infra is working with puppet v.4 . I have separated the CA ,  
puppetmaster and puppetdb  and   all is wokring perfectly fine. 

One small exception is : the puppetmaster is loging with message like : 

[puppetserver] Puppet TrustedInformation expected a certificate, but none 
was given.

Any Idea why this message , 
 since that I am able to sign client . 
there is no critical error message on all servers. 

many thanks for the supprt. 

Cheers, 
ren

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0c79a59a-6215-4d5d-9689-0792a9c1ad7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] syntax issue over puppet_4

2017-02-22 Thread Ren
yeah you absolutely right ! thank you.  now it works.  
am still discovering puppet. 

Le mercredi 22 février 2017 15:29:54 UTC+1, Dirk Heinrichs a écrit :
>
> Am 22.02.2017 um 14:28 schrieb Ren:
>
> *Error: Failed to apply catalog: Could not find dependency 
> Package[openssh-server] for File[/etc/ssh/sshd_config] at   
> modules/sshd/manifests/init.pp:14*
>
>
> It's not declared (package {$ssh_pkg: ...}). Wondering why it worked in 
> P3...
>
> Bye...
>
> Dirk
> -- 
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenTextTM Discovery | Recommind
> *Email*: dirk.he...@recommind.com 
> *Website*: www.recommind.de
>
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>
> Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon 
> Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 
> 10646
>
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/10e0a47a-62b1-4540-9bbc-76da53d0a17f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] syntax issue over puppet_4

2017-02-22 Thread Ren
Hi all, I'm hoping you can point out some detail I'm missing. Puppet agent 
seems to fail with manifest working fine with puppet3 but not for puppet4. 

Thank you . 

*Error: Failed to apply catalog: Could not find dependency 
Package[openssh-server] for File[/etc/ssh/sshd_config] at   
modules/sshd/manifests/init.pp:14*



class sshd {
case $::operatingsystem {
/(CentOS|Scientific|OracleLinux|OpenSuSE)/: {
$ssh_pkg = "openssh"
$ssh_svc = "sshd"
}
/(Debian|Solaris|Ubuntu)/: {
$ssh_pkg = "openssh-server"
$ssh_svc = "ssh"
}
}

# Special sshd_config
file {'/etc/ssh/sshd_config':
ensure => present,
mode => '0600',
require => Package[$ssh_pkg],
source => $application ? {
"jump" => "puppet:///modules/sshd/sshd_config.jump",
"git" => "puppet:///modules/sshd/sshd_config.gitolite",
default => "puppet:///modules/sshd/sshd_config.default"
},
notify => Service[$ssh_svc];
}

service {$ssh_svc:
ensure => running,
require => Package[$ssh_pkg],
enable => true;
}
}


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/76ddfca5-e10b-4e97-8c37-f434a8e91ecd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.