Comments (13)
Hi Oliver,
that is strange, I use ajp with apache and the latest wildfly in this vagrant box without any extra configuration.
https://github.com/biemond/vagrant-fedora20-puppet
Thanks Edwin
from puppet-wildfly.
Hi @biemond!
Could you try it with Wildfly 8.1? I think that should be easy to spin up in a vagrant box, isn't it?
I don't have an OK here yet to upgrade to Wildfly 8.2 and no test environment to give it a try :-/
Best,
Oliver
from puppet-wildfly.
Hi
It also works on wildly 8.1 because I just upgrade this box to 8.2 .
Yeah just download or fork this box , install vagrant and virtual box. Go into the folder and do vagrant up.
It will download all the required software from the internet.
from puppet-wildfly.
I just tested with wildfly 9.0.1.. wildfly is started, but not listening on port 8009.
I'm calling it like this:
class { '::wildfly':
version => '9.0.1',
install_source => "http://mylocalrepo.example.dk/sources/wildfly-9.0.1.Final.tar.gz",
group => 'wildfly',
user => 'wildfly',
dirname => '/opt/wildfly',
mode => 'standalone',
config => 'standalone-full.xml',
java_home => "",
java_xmx => '512m',
java_xms => '256m',
java_maxpermsize => '256m',
mgmt_http_port => 9990,
mgmt_https_port => 9993,
public_http_port => 8080,
public_https_port => 8443,
ajp_port => 8009,
users_mgmt => { 'wildfly' => { username => 'wildfly', password => 'wildfly' } }
}
from puppet-wildfly.
I found out, that editing the undertow subsystem is what needs to be done to enable AJP.. what this module currently does is only set the port.
Manually editing standalone-full.xml so undertow looks like this, makes it work (adding 1 line - the <ajp-listener..):
<subsystem xmlns="urn:jboss:domain:undertow:2.0">
<buffer-cache name="default"/>
<server name="default-server">
<ajp-listener name="ajpListener" scheme="http" socket-binding="ajp"/>
<http-listener name="default" socket-binding="http" redirect-socket="https"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/9"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>
from puppet-wildfly.
I'm assuming the "right way" would be to add: wildfly::undertow::ajp (just as there's wildfly::undertow::https class in module.
I'm trying to figure that out :)
from puppet-wildfly.
I don't see any code calling wildfly::undertow::https though.. so I'm not quite sure..
from puppet-wildfly.
@KlavsKlavsen AJP only comes enabled in full* profiles, at least for Wildfly 9.0.1.
::wildfly port parameters is all about socket binding, I don't like the idea to enable a specific feature or a subsystem based on a socket binding configuration.
As a matter of fact, I'm changing everything related to socket binding management in order to make it work on both operations modes (standalone and domain) and avoid this kind of confusion.
Examples:
::wildfly::socket_binding { 'ajp':
port => 8009,
target_group => 'standard-sockets',
}
::wildfly::socket_binding { 'iiop':
port => 3528,
interface => 'unsecure'
target_group => 'standard-sockets',
}
What do you think? I'll be glad to hear a second opinion. =)
from puppet-wildfly.
how would I call wildfly class - to enable ajp listener then? that I currently need to know, to choose full-ha config file - to get AJP enabled is... :(
from puppet-wildfly.
With this:
::wildfly::util::resource { '/subsystem=undertow/server=default-server/ajp-listener=ajp':
content => {
'socket-binding' => 'ajp'
}
}
In the future, you could try to submit a PR with wildfly::undertow::ajp
from puppet-wildfly.
I couldn't figure out how it should look :( - otherwise I would have.
would be good to be able to enable ajp - no matter what config file I've selected :)
from puppet-wildfly.
The snippet above (wildfly::util::resource) would enable the configuration in the same way of your XML snippet. In any profile you have selected.
from puppet-wildfly.
indeed it does. Thank you for the help. that was not at all clear to me :)
from puppet-wildfly.
Related Issues (20)
- Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir HOT 2
- JBOSS-EAP with **systemctl start jboss-eap** don't works from another machine just locally HOT 1
- where the log file is stored on Puppet Agent by this module HOT 1
- on SUSE Linux /etc/init.d/jboss-eap: line 13: /etc/init.d/functions: No such file or directory HOT 1
- wildfly_restart functionality issues
- how to install und build multiple standalone instances in the same machine
- Need a way to install module with multiple jar files as source HOT 1
- Transfer this module to voxpupuli HOT 22
- wildfly::jgroups::stack::tcpping fails with "No resource definition" HOT 1
- Update test environment for Ruby 3, Puppet 7, and related Gems HOT 1
- Add parameters to domain.conf variables PROCESS_CONTROLLER_JAVA_OPTS and HOST_CONTROLLER_JAVA_OPTS
- Replace MaxPermSize with MaxMetaspaceSize in domain.conf template HOT 1
- `wildfly::host::server_config` with `ensure => absent` in already absent server tries to stop it and fails with timeout
- Include support for CLI API for actions currently performed via HTTP API HOT 2
- Multiple calls to defined type wildfly::host::server_config cause "Duplicate resource" error HOT 3
- class wildfly::setup hardcodes subsystem when setting up remote user HOT 2
- Installer download fails because install_cache_dir doesn't exist
- Module configures service only as sysvinit, regardless of actual init system, when $version < 10 HOT 1
- Update Wildfly download URL for version >= 25
- Support for Wildfly 31.0.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-wildfly.