Hi, I am using Puppet master and client 3.7 and for store configs MySql DB. Here I am trying to export IPaddress from one node another. When I ran the agent in client node it is executing without any error, could see the related node details in MYSQL db but not able collect it and mentioned file is showing as empty. Please find the below my classes details and puppet conf details. Please help me to fix this issue. Thanks in advance. ------------------------------------------------------- class admin::file { @@file {"/tmp/ip.txt/${::ipaddress}": path => '/tmp/ip.txt/', content => "\ndefine('DB_HOST',\t${::ipaddress});", tag => "ip" } }
node 'dbserver.garuda.com' { include admin::file } class admin { File <<| tag == 'ip" |>> } node 'webserver.gauda.com' { include admin } ------------------------------------------------- #/etc/puppet/puppet.conf [master] dbadapter = mysql storeconfigs=true dbuser = puppet dbpassword = P@ssw0rd dbserver = puppetmaster.garuda.com dbsocket = /var/run/mysqld/mysqld.sock ----------------------------------------------------------------mysql> select * from hosts; +----+------------------+--------------+-------------+---------------------+-----------------+-------------+---------------------+----------------+---------------------+ | id | name | ip | environment | last_compile | last_freshcheck | last_report | updated_at | source_file_id | created_at | +----+------------------+--------------+-------------+---------------------+-----------------+-------------+---------------------+----------------+---------------------+ | 1 | puppet.openstack | 10.100.1.188 | production | 2014-12-22 23:57:30 | NULL | NULL | 2014-12-22 23:57:30 | NULL | 2014-12-21 21:50:53 | +----+------------------+--------------+-------------+---------------------+-----------------+-------------+---------------------+----------------+---------------------+ --- -- 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/b18cc164-afeb-4b09-aea8-4cf9a9b05bd3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.