daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Code [ruby]
  2. #!/usr/bin/env ruby
  3. require 'puppet'
  4.  
  5. Puppet[:config] = "/etc/puppet/puppet.conf"
  6. Puppet.parse_config
  7.  
  8. Puppet[:name] = "puppetmasterd"
  9.  
  10. puts "dbsocket: %s" % Puppet[:dbsocket]
  11. puts "dbname: %s" % Puppet[:dbname]
  12. puts "dbadapter: %s" % Puppet[:dbadapter]
  13.  
  14. ## Testing: [plain_text]
  15. aj@junglist ~$ ./test.rb
  16. dbsocket:
  17. dbname: puppet
  18. dbadapter: sqlite3
  19.  
  20. ## Puppet.conf [plain_text]
  21. aj@junglist ~$ cat /etc/puppet/puppet.conf
  22. [main]
  23. logdir=/var/log/puppet
  24. vardir=/var/lib/puppet
  25. ssldir=/var/lib/puppet/ssl
  26. factpath=/var/lib/puppet/lib/facter
  27. rundir=/var/run/puppet
  28.  
  29. [puppetd]
  30. noop=true
  31. pluginsync=true
  32. diff_args=-u
  33. server=junglist.gen.nz
  34. report=true
  35.  
  36. [puppetmasterd]
  37. reports=tagmail,log,store
  38. certname=junglist.gen.nz
  39. autosign=true
  40. templatedir=/var/lib/puppet/templates
  41. storeconfigs=true
  42. dbuser=root
  43. dbpassword=xxx
  44. dbadapter=mysql
  45. dbserver=localhost
  46. dbsocket=/var/run/mysqld/mysqld.sock
  47. dbname=puppet
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top