1. György Kohut
  2. honeeebox

Source

honeeebox / vagrant / puppet / modules / backend / templates / create-hbbackend-domain.erb

#!/bin/sh -e

PATH="/opt/glassfish3/bin:$PATH"
export PATH

if [ ! -f ~/_hbbackend_domain_created ]
then

asadmin create-domain --nopassword=true --portbase 9900 hbbackend
chown -R <%= targetuser %> /opt/glassfish3/glassfish/domains/hbbackend

touch ~/_hbbackend_domain_created

fi