$ cat glassfish.pp
package { 'unzip': ensure => present }
include glassfish
file { '/tmp/asadmin.pass':
ensure => present,
# path => '/tmp/asadmin.pass',
content => 'AS_ADMIN_PASSWORD=adminadmin',
mode => '0644',
require => Class['glassfish']
}
glassfish::create_domain {'test':
asadmin_passfile => '/tmp/asadmin.pass',
require => File['/tmp/asadmin.pass']
}
$ sudo puppet apply --modulepath=~/modules/ glassfish.pp -v
Info: Loading facts in /home/vagrant/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /home/vagrant/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /home/vagrant/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /home/vagrant/modules/stdlib/lib/facter/root_home.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for glassfish-ubuntu.dt0388.test in environment production in 0.40 seconds
Error: Parameter passwordfile failed on Domain[test]: /tmp/asadmin.pass does not exist at /home/vagrant/modules/glassfish/manifests/create_domain.pp:41
Wrapped exception:
/tmp/asadmin.pass does not exist
# Autorequire the password file
autorequire(:file) do
self[:passwordfile]
end
Line 41 is the end of the domain resource in the create_domain defined type. [1]
Cheers
Gav
[1] https://github.com/fatmcgav/puppet-glassfish/blob/master/manifests/create_domain.pp#L41
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/YQQAo9CK9As/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/523AB043-FAB6-4A2D-9D88-BEEACB790B8C%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.