[Puppet Users] How to get remote node ip

2017-07-04 Thread Александр Подолин
Hi all. Can anybody explain me, how to get remote node ip and use it in .erb template file, if this node has several ip address. Example: server has ip 192.168.156.68 and 10.248.41.70. I need to get 192.168.156.68 In my manifest file i write: if $::ipaddress =~ /^192\.168\.\d{1,3}\.\d{1,3}/ {

[Puppet Users] Re: How to get remote node ip

2017-07-04 Thread Peter Faller
If you know what physical interface that address is on, you can use 'ipaddress_ens33' for example: # facter --puppet | fgrep interface interfaces => ens32,ens33,lo # facter --puppet | fgrep ip ipaddress => 192.168.51.106 ipaddress_ens32 => 192.168.51.106 ipaddress_ens33 => 192.168.53.106 ipaddres

[Puppet Users] Re: puppet agent running on same host as puppet server, possible cert issues

2017-07-04 Thread Peter Faller
Is the puppet agent running as the same user when run as a daemon and when run via 'puppet agent' from the command line? I've seen that make a difference. On Monday, 3 July 2017 15:49:06 UTC+2, aaron@gmail.com wrote: > > >>> >>> -- You received this message because you are subscribed to th

[Puppet Users] Re: How to get remote node ip

2017-07-04 Thread Александр Подолин
It's a group of servers with different interface name. I read a docs and now, i think to use custom facts and factor utilite, to get ip but i can not understand, which directory i must save file with custom fact вторник, 4 июля 2017 г., 12:21:33 UTC+3 пользователь Александр Подолин написал: > >

[Puppet Users] Re: external facts script not working, but only when puppet agent is run as a daemon

2017-07-04 Thread Ugo Bellavance
What I meant exactly is that the error messages were added to the json, so when I tried to load the json into an array, I got an error saying that the input was not a standard json string. On Monday, July 3, 2017 at 3:20:12 PM UTC-4, Ugo Bellavance wrote: > > I found it: the PHP script threw PHP

[Puppet Users] SSLCertificateFile: file '/etc/puppetlabs/puppet/ssl/certs/puppet.lab.net.pem' does not exist or is empty

2017-07-04 Thread Mohamed Anees
Error message: Jul 04 08:42:09 puppet.lab.net systemd[1]: Starting The Apache HTTP Server... Jul 04 08:42:09 puppet.lab.net httpd[4009]: AH00526: Syntax error on line 23 of /etc/httpd/conf.d/puppetmaster.conf: Jul 04 08:42:09 puppet.lab.net httpd[4009]: SSLCertificateFile: file '/etc/puppetlabs