Closed ashish1099 closed 8 years ago
Hi
I also test this module (latest from github) on centos 7 with wildfly 9.0.2 and it works for me
The only bug I got it tries to enable the service in every puppet run like this Notice: /Stage[main]/Wildfly::Service/Service[wildfly]/enable: enable changed 'false' to 'true'
==> default: Notice: /Stage[main]/Wildfly::Prepare/Group[wildfly]/ensure: created
==> default: Notice: /Stage[main]/Wildfly::Prepare/User[wildfly]/ensure: created
==> default: Notice: /Stage[main]/Wildfly::Prepare/File[/opt/wildfly]/ensure: created
==> default: Notice: /Stage[main]/Wildfly::Install/Exec[Download wildfly from http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz]/returns: executed successfully
==> default: Info: /Stage[main]/Wildfly::Install/Exec[Download wildfly from http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz]: Scheduling refresh of Exec[untar wildfly-9.0.2.Final.tar.gz]
==> default: Notice: /Stage[main]/Wildfly::Install/Exec[untar wildfly-9.0.2.Final.tar.gz]/returns: executed successfully
==> default: Notice: /Stage[main]/Wildfly::Install/Exec[untar wildfly-9.0.2.Final.tar.gz]: Triggered 'refresh' from 1 events
==> default: Info: Computing checksum on file /opt/wildfly/bin/standalone.conf
==> default: Info: /Stage[main]/Wildfly::Setup/File[/opt/wildfly/bin/standalone.conf]: Filebucketed /opt/wildfly/bin/standalone.conf to puppet with sum f87f0b158b9734ca32d7d307d3567ff2
==> default: Notice: /Stage[main]/Wildfly::Setup/File[/opt/wildfly/bin/standalone.conf]/content: content changed '{md5}f87f0b158b9734ca32d7d307d3567ff2' to '{md5}30aa047065bc97124716636387d96a8b'
==> default: Notice: /Stage[main]/Wildfly::Setup/File[/opt/wildfly/bin/standalone.conf]/seluser: seluser changed 'unconfined_u' to 'system_u'
==> default: Notice: /Stage[main]/Wildfly::Setup/File[/opt/wildfly/bin/standalone.conf]/seltype: seltype changed 'usr_t' to 'bin_t'
==> default: Info: /Stage[main]/Wildfly::Setup/File[/opt/wildfly/bin/standalone.conf]: Scheduling refresh of Class[Wildfly::Service]
==> default: Info: /Stage[main]/Wildfly::Setup/File[/opt/wildfly/bin/standalone.conf]: Scheduling refresh of Class[Wildfly::Service]
==> default: Info: /Stage[main]/Wildfly::Setup/File[/opt/wildfly/bin/standalone.conf]: Scheduling refresh of Class[Wildfly::Service]
==> default: Notice: /Stage[main]/Wildfly::Setup/Wildfly::Config::Mgmt_user[wildfly]/Wildfly::Config::User[wildfly]/File_line[wildfly:ManagementRealm]/ensure: created
==> default: Info: Class[Wildfly::Service]: Scheduling refresh of Service[wildfly]
==> default: Notice: /Stage[main]/Wildfly::Service/File[/etc/default/wildfly.conf]/ensure: defined content as '{md5}76ba1c433ac18364bae42b40d117bb6d'
==> default: Info: /Stage[main]/Wildfly::Service/File[/etc/default/wildfly.conf]: Scheduling refresh of Service[wildfly]
==> default: Notice: /Stage[main]/Wildfly::Service/File[/etc/init.d/wildfly]/ensure: defined content as '{md5}c51849d364e29f46ed3928cf0f598df8'
==> default: Notice: /Stage[main]/Wildfly::Service/Service[wildfly]/ensure: ensure changed 'stopped' to 'running'
==> default: Info: /Stage[main]/Wildfly::Service/Service[wildfly]: Unscheduling refresh on Service[wildfly]
this is the config I used
node default {
include my_os
include my_java
include my_wildfly
}
# Operating Sytem settings
class my_os {
host{'localhost':
ip => "127.0.0.1",
host_aliases => ['localhost.localdomain',
'localhost4',
'localhost4.localdomain4'],
}
host{'dev.example.com':
ip => "10.10.10.10",
host_aliases => 'dev',
}
service { iptables:
enable => false,
ensure => false,
hasstatus => true,
}
$install = ['binutils.x86_64','wget']
package { $install:
ensure => present,
}
}
class my_java {
contain my_os
class { 'jdk_oracle':
version => "8",
version_update => '60',
version_build => '27',
}
}
class my_wildfly{
contain my_os, my_java
class { 'wildfly':
version => '9.0.2',
install_source => 'http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz',
java_home => '/opt/jdk1.8.0_60',
dirname => '/opt/wildfly',
mode => 'standalone',
config => 'standalone-full-ha.xml',
users_mgmt => { 'wildfly' => { password => 'wildfly'}},
}
}
Thank you @ashish1099
First, are you using Safari? He keeps trying to replace wildfly for wildly and it really annoys me hahaha
I was aware of this problem, but was unable to map the cause since it seemed non-deterministic (heisenbug) in my environment
One day I lost about 4-6 hours of my day due to VMWare Fusion slow network when using beaker (hate that I can't use vagrant-cachier with Beaker + Vagrant) and had to give up on this for a while
@biemond This problem that you reported is a constant. At first I thought it was a a problem with service
type (he just keeps reporting that it can't enable the service), but lately started to think that I might be missing something about systemd behavior (i.e. Do I really need /etc/systemd/system/wildfly.service file?)
http://www.dmartin.es/2014/07/jboss-eap-6-as-rhel-7-service/
indeed
puppet on rhel 7 checks with systemctl the UnitFileState property for if it is enabled or not. In our case this property is empty. The wildfly service ( <7.0 init.d script ) does not support systemctl is-enabled
But the dmartin solution seems fine. I will take a look at it
Just fixed with latest commit. Feel free to test and reopen this if you still having problems with RHEL7 based distros.
Puppet runs fails for the first time on centos
Manually starting wildly
And then it works proper,
Looks like first time we have to start the service with manually.