service {'oracle-xe':
ensure => running
}
service {'iptables':
ensure => stopped
}
exec {"changeDbPassword":
environment => ["ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe", "ORACLE_SID=XE"],
command => "sqlplus -s /nolog <<EOF
connect sa/sa
ALTER USER system IDENTIFIED BY mypassword;
quit
EOF",
path => "/u01/app/oracle/product/11.2.0/xe/bin/",
logoutput => 'true'
}