On 09/03/18 23:56, [email protected] wrote:
Hello, I'm having a issue with getting the order of my module correct. I have the PostgreSQL db define block as so:

|
postgresql::server::db {'my_db':
     user =>'my_user',
     password =>postgresql_password('my_user','my_pass'),
}
|

I've tried using:

|
require=>Class['postgresql::server::db']
|

but it's not a class, it's a define. I also tried:

|
require=>Resource['my_db']

It is Resource['postgresql::server::db', 'my_db']
or Postgresql::Server::Db['my_db']


which doesn't throw an error but doesn't actually do anything and 'my_db' runs whenever it wants to. Any help is appreciated.

Resource['my_db'] means a reference to all resources of the type 'my_db', which you do not have any.

- henrik


Thanks!

--
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 [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7fa22315-ea38-4380-a056-5febcda79ea2%40googlegroups.com <https://groups.google.com/d/msgid/puppet-users/7fa22315-ea38-4380-a056-5febcda79ea2%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/p7vgv1%24r9g%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to