postgresql - How do I use Puppet's ralsh with resource types provided by modules? -
i have installed postgresql module puppetforge.
how can query postgresql resources using ralsh
?
none of following works:
# ralsh postgresql::db # ralsh puppetlabs/postgresql::db # ralsh puppetlabs-postgresql::db
i hoping use list of databases (including attributes such character sets) , user names/passwords current system in form can paste puppet manifest recreate setup on different machine.
in principle, puppet client
gets current state of system program called facter
. should create custom fact
(a module of facter
), , included puppet client. afterwards, think call custom fact
ralsh
.
more information creating custom fact
can found in here.
in creating own fact
, should execute sql query , save result particular variable.
Comments
Post a Comment