[Puppet Users] Can´t connect puppetdb with postgres

2020-09-10 Thread Andreas Meier
Hello!

I´m getting this message:
ERROR [p.p.c.services] Will retry database connection after temporary 
failure: java.sql.SQLT ransientConnectionException: 
PDBMigrationsPool - Connection is not available, request timed out after 
3000ms.

puppetdb-6.9.1

But why?

Best
AM

-- 
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/eb2861a8-9203-4f12-90f2-b9f23de2d4d2o%40googlegroups.com.


[Puppet Users] Puppet Unrecognized escape sequence

2020-09-10 Thread alexey....@gmail.com
Hi everyone! 
I receive warnings in the logs, I would like to know how I can ignore these 
warnings so that they are not written to the log?
This is a block of code calling the executable file, each time it is 
called, I get 3 entries in the log: 
WARN  [qtp1238512464-45] [puppetserver] Puppet Unrecognized escape sequence 
'\8' 
WARN  [qtp1238512464-45] [puppetserver] Puppet Unrecognized escape sequence 
'\b'
WARN  [qtp1238512464-45] [puppetserver] Puppet Unrecognized escape sequence 
'\1'

-- 
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/deca4648-3ea1-41f0-a136-3427a99a902dn%40googlegroups.com.


[Puppet Users] Re: inlined-epp with hash

2020-09-10 Thread Andreas Dvorak
I found a solution:
<%- | String $database_schemes,
 Hash[String, Hash[String, String]] $database_conf,
| -%>

DATABASES=<%= $database_schemes %>
<% $database_conf.keys.sort.each |$key| { -%>
##
<%= $key %>.jdbc.DRIVER=<%= $database_conf[$key]['oracle_cms_jdbc_driver'] 
%>
<% } -%>

Andreas Dvorak schrieb am Donnerstag, 10. September 2020 um 08:10:26 UTC+2:

> Hi,
>
> I have this structure in hiera and want to use it in a inlined-epp file
>
>
>
>
>
>
>
>
>
>
>
> *cms::params::database_conf: 'oracle_cms_dev':oracle_cms_jdbc_schema: 
> 'CMS_DEV'oracle_cms_jdbc_user: 'CMS_DEV'oracle_cms_jdbc_driver: 
> 'oracle.jdbc.OracleDriver'oracle_cms_jdbc_url: 'jdbc:oracle:thin:)' 
> 'oracle_cms_dev2':oracle_cms_jdbc_schema: 'CMS_DEV2'   
>  oracle_cms_jdbc_user: 'CMS_DEV2'oracle_cms_jdbc_driver: 
> 'oracle.jdbc.OracleDriver'oracle_cms_jdbc_url: 'jdbc:oracle:thin:*
>
> code in the class
> $vault_vars_jdbc = {
> 'database_conf' => $cms::params::database_conf,
> }
>
> epp file
> <%- |
>   Hash database_conf,
> | -%>
>
> But I get the error:
> Error: Failed to apply catalog: inline_epp(): Invalid EPP: Syntax error at 
> 'database_conf' (file: inlined-epp-text, line: 2, column: 11)
>
> So "Hash" does not work. Can somebody please help me?
>
> Regards,
> Andreas
>

-- 
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/2c1244b6-e43d-4036-8ff6-95b0ca9c3886n%40googlegroups.com.


Re: [Puppet Users] inlined-epp with hash

2020-09-10 Thread Helmut Schneider

Am 10.09.2020 um 08:10 schrieb Andreas Dvorak:


epp file
<%- |
Hash database_conf,
| -%>


Hash $databse_conf

--
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/rjcv5a%24s5t%241%40ciao.gmane.io.