Comments (6)
I was able to deploy in domain mode with the following request:
{
"operation":"composite",
"address":[
],
"steps":[
{
"operation":"add",
"address":[
{
"deployment":"sample.war"
}
],
"content":[
{
"url":"file:/home/jjunior/sample.war"
}
]
},
{
"operation":"add",
"address":[
{
"server-group":"main-server-group"
},
{
"deployment":"sample.war"
}
]
},
{
"operation":"deploy",
"address":[
{
"server-group":"main-server-group"
},
{
"deployment":"sample.war"
}
]
}
]
}
As we talked before, we'll just need a new parameter in wildfly_deploy
(server_group).
I'll seize the opportunity to also change wildfly_resource
to support a target profile and refactor wildfly_cli.rb cause it's getting messy. =)
from puppet-wildfly.
Can you point to master and test my changes? PR #57
I performed some local tests with the following code:
wildfly_deploy { 'sample.war':
username => 'wildfly',
password => 'wildfly',
source => 'file:/vagrant/sample.war',
server_group => 'main-server-group',
}
from puppet-wildfly.
wildfly_deploy only supports file:/ source and wildfly: wildfly should have read access to the file. A chmod 644 should fix the "Invalid URL stream".
I'll change wildfly::standalone::deploy to become wildfly::deploy and support both domain and standalone modes, and you'll be able to deploy from http, ftp and nexus.
from puppet-wildfly.
Hm. I realized my mistake. It was blocked from localhost, because i binded jboss management address to $ipaddress_eth1. Perfect! Now it works fine!
And this is my solution:
wildfly_deploy { 'postgresql-9.3-1103-jdbc4.jar':
host => $ipaddress_eth1,
username => 'admin',
password => '1',
source => 'http://central.maven.org/maven2/org/postgresql/postgresql/9.3-1103-jdbc4/postgresql-9.3-1103-jdbc4.jar',
server_group => 'main-server-group',
require => Exec['Wasting of 25 seconds']
}
wildfly_deploy { 'ec.ear':
host => $ipaddress_eth1,
username => 'admin',
password => '1',
source => 'file:/vagrant/files/target/ec.ear',
server_group => 'main-server-group',
require => Wildfly_deploy['postgresql-9.3-1103-jdbc4.jar']
}
Output:
==> web1: Debug: Wildfly_deploy[postgresql-9.3-1103-jdbc4.jar](provider=http_api): Exists? postgresql-9.3-1103-jdbc4.jar
==> web1: Debug: Wildfly_deploy[postgresql-9.3-1103-jdbc4.jar](provider=http_api): Current content SHA1: 7fcb927138307494d92ff996bbfbde37ee8b44f3
==> web1: Debug: /Stage[main]/Role::Deploy/Wildfly_deploy[postgresql-9.3-1103-jdbc4.jar]/content: Should SHA1: IS SHA1: 7fcb927138307494d92ff996bbfbde37ee8b44f3
==> web1: Debug: Wildfly_deploypostgresql-9.3-1103-jdbc4.jar: Updating deploy postgresql-9.3-1103-jdbc4.jar with content from http://central.maven.org/maven2/org/postgresql/postgresql/9.3-1103-jdbc4/postgresql-9.3-1103-jdbc4.jar
==> web1: Notice: /Stage[main]/Role::Deploy/Wildfly_deploy[postgresql-9.3-1103-jdbc4.jar]/content: content changed '7fcb927138307494d92ff996bbfbde37ee8b44f3' to ''
==> web1: Debug: /Stage[main]/Role::Deploy/Wildfly_deploy[postgresql-9.3-1103-jdbc4.jar]: The container Class[Role::Deploy] will propagate my refresh event
==> web1: Debug: Wildfly_deploy[ec.ear](provider=http_api): Exists? ec.ear
==> web1: Debug: Wildfly_deploy[ec.ear](provider=http_api): Deploying ec.ear from source file:/vagrant/files/target/ec.ear
==> web1: Notice: /Stage[main]/Role::Deploy/Wildfly_deploy[ec.ear]/ensure: created
==> web1: Debug: /Stage[main]/Role::Deploy/Wildfly_deploy[ec.ear]: The container Class[Role::Deploy] will propagate my refresh event
==> web1: Debug: Class[Role::Deploy]: The container Stage[main] will propagate my refresh event
==> web1: Debug: Finishing transaction 70363321619020
==> web1: Debug: Storing state
==> web1: Debug: Stored state in 0.05 seconds
from puppet-wildfly.
@jairojunior Yeah, i see it. Thanks you!
from puppet-wildfly.
Awesome!
from puppet-wildfly.
Related Issues (20)
- 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 HOT 1
- Missing template when using jboss-eap as distribution
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.