After some more trial and error i've managed to get this working if i 
disabled store configs, which is strange. Maybe i'm missing something but 
there is nothing in the documentation about not using store configs with 
ENC.

On Friday, September 14, 2012 12:43:48 PM UTC+3, Cosmin-Viorel Ilie wrote:
>
> Hi everyone,
>
> I've been bashing my head in the wall for several days now trying to find 
> out why puppet isn't loading the class from enc. I've setup the enc from 
> puppet-dashboard which returns:
>
> [root@v-test-mng-01 puppet-dashboard]# /usr/bin/env PUPPET_DASHBOARD_URL=
> http://v-test-mng-01:3000 /usr/share/puppet-dashboard/bin/external_node
>
> ---
> - name: v-test-tst-01.domain.net
>   parameters: {}
>
>   classes:
>   - test
> - name: v-test-mng-01.domain.net
>   parameters: {}
>
>   classes: []
>
>
> however when i run  puppet agent --test --debug --no-daemonize -v on 
> v-test-tst-01 the class is not loaded. If a look in the 
> /var/lib/puppet/classes.txt on the agent i only see an entry for settings, 
> but not the test class. Permissions to the 
> /usr/share/puppet-dashboard/bin/external_node are [-rwxr-xr-x 1 puppet 
> puppet 1453 Sep 12 04:43 /usr/share/puppet-dashboard/bin/external_node]. 
>
> The test module is as fallows:
>
> test/manifests/init.pp
>                class test ($var='default') {
>                         notify {$var:}
>                  }
>
>
> The puppet config file is :
>
> [main]
>
>     # The Puppet log directory.
>     # The default value is '$vardir/log'.
>     logdir = /var/log/puppet
>
>     server= v-test-mng-01.domain.net
>     # Where Puppet PID files are kept.
>     # The default value is '$vardir/run'.
>     rundir = /var/run/puppet
>
>     # Where SSL certificates are kept.
>     # The default value is '$confdir/ssl'.
>     ssldir = $vardir/ssl
>     autosign=true
>     environment = production
>
> [agent]
>     # The file in which puppetd stores a list of the classes
>     # associated with the retrieved configuratiion.  Can be loaded in
>     # the separate ``puppet`` executable using the ``--loadclasses``
>     # option.
>     # The default value is '$confdir/classes.txt'.
>     classfile = $vardir/classes.txt
>
>     # Where puppetd caches the local configuration.  An
>     # extension indicating the cache format is added automatically.
>     # The default value is '$confdir/localconfig'.
>     localconfig = $vardir/localconfig
>     report = true
>
> [master]
>     node_terminus = exec
>     external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=
> http://v-test-mng-01:3000 /usr/share/puppet-dashboard/bin/external_node
>     
>     ssl_client_header = SSL_CLIENT_S_D
>     ssl_client_verify_header = SSL_CLIENT_VERIFY
>     storeconfigs = true
>     dbadapter = mysql
>     dbname = puppet
>     dbuser = puppet
>     dbpassword = xxxx
>     dbserver = localhost
>     dbsocket = /var/lib/mysql/mysql.sock
>     reports = http,store,log
>     reporturl = http://localhost:3000/reports/upload
>
>
> If i create the *site.pp *and add the node definition there everything 
> works fine. 
>
> The dashboard is on the same machine as the puppet master (v-test-mng-01 
> in my case).  If i run: *puppet master --configprint external_nodes*
> /usr/bin/env 
> PUPPET_DASHBOARD_URL=http://v-test-mng-01:3000/usr/share/puppet-dashboard/bin/external_node
>
> I'm using puppet 3.0 RC6 and dashboard 1.2.11 with Ruby 1.8.7 (2011-06-30 
> patchlevel 352) [x86_64-linux]
>
>
> I'm running out of ideas on how to get this working so any idea or help 
> would be appreciated.
>
> The output from the agent run is attached.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/XKxcB8nxTdwJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to