Giter Club home page Giter Club logo

Comments (6)

jairojunior avatar jairojunior commented on July 28, 2024

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.

jairojunior avatar jairojunior commented on July 28, 2024

@SanSan-

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.

jairojunior avatar jairojunior commented on July 28, 2024

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.

SanSan- avatar SanSan- commented on July 28, 2024

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.

SanSan- avatar SanSan- commented on July 28, 2024

@jairojunior Yeah, i see it. Thanks you!

from puppet-wildfly.

jairojunior avatar jairojunior commented on July 28, 2024

Awesome!

from puppet-wildfly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.