Skip to content

Instantly share code, notes, and snippets.

@fatmcgav
Created October 8, 2014 14:20
Show Gist options
  • Save fatmcgav/98870ed2477714cb9388 to your computer and use it in GitHub Desktop.
Save fatmcgav/98870ed2477714cb9388 to your computer and use it in GitHub Desktop.
Glassfish Puppet run on Ubuntu 12.04
$ vagrant ssh
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Wed Oct 8 13:57:08 2014 from 10.0.2.2
vagrant@ubuntu-server-12042-x64-vbox4210:~$ puppet --version
3.7.1
vagrant@ubuntu-server-12042-x64-vbox4210:~$ cd /vagrant/puppet/
vagrant@ubuntu-server-12042-x64-vbox4210:/vagrant/puppet$ ll modules/
total 16
drwxrwxr-x 1 vagrant vagrant 4096 Oct 8 13:53 ./
drwxrwxr-x 1 vagrant vagrant 4096 Oct 8 13:56 ../
drwxrwxr-x 1 vagrant vagrant 4096 Oct 8 13:53 glassfish/
drwxrwxr-x 1 vagrant vagrant 4096 Oct 8 13:53 stdlib/
vagrant@ubuntu-server-12042-x64-vbox4210:/vagrant/puppet$ cat gf-test2.pp
package {'unzip':
ensure => present,
before => Class['glassfish']
}
class { 'glassfish':
create_domain => true,
domain_name => 'test',
portbase => '8000'
}
vagrant@ubuntu-server-12042-x64-vbox4210:/vagrant/puppet$ sudo puppet apply -v --modulepath=modules gf-test2.pp
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1117:in `issue_deprecation_warning')
Info: Loading facts
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for ubuntu-server-12042-x64-vbox4210.card.co.uk in environment production in 2.87 seconds
Info: Applying configuration version '1412776906'
Notice: /Stage[main]/Glassfish::Java/Package[openjdk-7-jdk]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Main/Package[unzip]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Glassfish::Install/Group[glassfish]/ensure: created
Notice: /Stage[main]/Glassfish::Install/User[glassfish]/ensure: created
Notice: /Stage[main]/Glassfish/Glassfish::Create_asadmin_passfile[glassfish_asadmin_passfile]/File[glassfish_asadmin_passfile]/ensure: created
Notice: /Stage[main]/Glassfish::Install/Exec[download_glassfish-3.1.2.2.zip]/returns: executed successfully
Notice: /Stage[main]/Glassfish::Install/Exec[unzip-downloaded]/returns: executed successfully
Notice: /Stage[main]/Glassfish::Install/Exec[change-ownership]/returns: executed successfully
Notice: /Stage[main]/Glassfish::Install/Exec[change-mode]/returns: executed successfully
Notice: /Stage[main]/Glassfish::Install/Exec[move-glassfish3]/returns: executed successfully
Notice: /Stage[main]/Glassfish::Install/File[remove-domain1]/ensure: removed
Notice: /Stage[main]/Glassfish::Path/File[/etc/profile.d/glassfish.sh]/ensure: created
Notice: /Stage[main]/Glassfish/Glassfish::Create_domain[test]/Domain[test]/ensure: created
Notice: /Stage[main]/Glassfish/Glassfish::Create_domain[test]/Glassfish::Create_service[test]/File[test_servicefile]/ensure: created
Info: /Stage[main]/Glassfish/Glassfish::Create_domain[test]/Glassfish::Create_service[test]/File[test_servicefile]: Scheduling refresh of Service[glassfish_test]
Notice: /Stage[main]/Glassfish/Glassfish::Create_domain[test]/Glassfish::Create_service[test]/Exec[stop_test]/returns: executed successfully
Notice: /Stage[main]/Glassfish/Glassfish::Create_domain[test]/Glassfish::Create_service[test]/Service[glassfish_test]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Glassfish/Glassfish::Create_domain[test]/Glassfish::Create_service[test]/Service[glassfish_test]: Unscheduling refresh on Service[glassfish_test]
Info: Creating state file /var/lib/puppet/state/state.yaml
Notice: Finished catalog run in 741.24 seconds
vagrant@ubuntu-server-12042-x64-vbox4210:/vagrant/puppet$ sudo service glassfish_test status
Oracle Glassfish Java EE Application Server ver. 3.1.2.2 status: running (pid: 15079)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment