[Puppet Users] Apache proxy_pass hiera - yaml

2018-11-22 Thread Rafael Tomelin
Hi,

How can configuration proxy_apps
 with hiera - yaml?

I have multiple proxy_pass, not run.

Example to migrate for YAML:

proxy_pass => [
{ 'path' => '/a', 'url' => 'http://backend-a/' },
{ 'path' => '/b', 'url' => 'http://backend-b/' },
{ 'path' => '/c', 'url' => 'http://backend-a/c', 'params' =>
{'max'=>20, 'ttl'=>120, 'retry'=>300}},
{ 'path' => '/l', 'url' => 'http://backend-xy',
  'reverse_urls' => ['http://backend-x', 'http://backend-y'] },
{ 'path' => '/d', 'url' => 'http://backend-a/d',
  'params' => { 'retry' => '0', 'timeout' => '5' }, },
{ 'path' => '/e', 'url' => 'http://backend-a/e',
  'keywords' => ['nocanon', 'interpolate'] },
{ 'path' => '/f', 'url' => 'http://backend-f/',
  'setenv' => ['proxy-nokeepalive 1','force-proxy-request-1.0 1']},
{ 'path' => '/g', 'url' => 'http://backend-g/',
  'reverse_cookies' => [{'path' => '/g', 'url' =>
'http://backend-g/',}, {'domain' => 'http://backend-g', 'url' =>
'http:://backend-g',},], },
{ 'path' => '/h', 'url' => 'http://backend-h/h',
  'no_proxy_uris' => ['/h/admin', '/h/server-status'] },
  ],

-- 

Atenciosamente,

Rafael Tomelin

skype: rafael.tomelin

E-mail: rafael.tome...@gmail.com

RHCE  - Red Hat Certified Engineer
PPT-205 - Puppet Certified Professional 2017
Zabbix- ZABBIX Certified Specialist
LPI3
ITIL v3

-- 
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/CAGEUqbC0B4%2Beuuj2AETeaT86KuTEn%2BhWvKvaWgkPOauFN9y0Rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Issue when trying to sign a certificate

2018-11-22 Thread Jesús Oliván
Hi!

i'm experimenting a weird issue at random times when some clients are
trying to sign his certificate in their puppet masters. Here's the log
lines where error is visible:

Info: Creating a new SSL key for pro-front-.xxx
Info: csr_attributes file loading from
/etc/puppetlabs/puppet/csr_attributes.yaml
Info: Creating a new SSL certificate request for pro-front-.xxx
Info: Certificate Request fingerprint (SHA256):
8D:FD:25:92:06:09:D1:38:B0:74:40:28:A6:C3:5C:B4:39:6D:81:EC:97:90:67:6B:45:39:DD:7A:EC:E3:F5:F6
Error: Could not request certificate: Error 500 on SERVER: Internal Server
Error: java.lang.NumberFormatException: For input string: ""


And this is the output on the same stage of another node that is working
fine with the same role/config:

Info: Creating a new SSL key for pro-front-.xxx
Info: csr_attributes file loading from
/etc/puppetlabs/puppet/csr_attributes.yaml
Info: Creating a new SSL certificate request for pro-front-.xxx
Info: Certificate Request fingerprint (SHA256):
FD:FC:6F:D0:39:3B:78:24:2B:B9:5D:82:6E:E8:58:0B:37:63:AD:89:6F:D9:34:15:E6:D9:42:7F:AB:E5:EF:3BESC[0m
Info: Caching certificate for pro-front-.xxx
Info: Caching certificate for pro-frontend-x.xxx
Info: Using configured environment 'pro'
Info: Retrieving pluginfacts
Info: Retrieving plugin

It's happening a few times, but it's annoying because when it occurs is
while launching several nodes to form a new cluster, so the cluster is
never formed until this "puppet not signed host" is not signed manually.
Can anyone give me some light about this, please? Specially, this line in
the "not working" node is concerning me:

Error: Could not request certificate: Error 500 on SERVER: Internal Server
Error: java.lang.NumberFormatException: For input string: ""

Thanks in advance!

-- 
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/CAKYJm92S6m8-ahS93X6%3DELA_a%3DgBbMxNjdKS%2BVW%2BdAy8QpdtkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.