All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.plugins.bootablejar.maven.cloud.openshift-interfaces-script.cli Maven / Gradle / Ivy

There is a newer version: 11.0.2.Final
Show newest version
# Private interface
if (outcome == success) of /interface=private:read-resource
/interface=private:write-attribute(name=inet-address,value=${jboss.bind.address.private,env.HOSTNAME:127.0.0.1})
end-if

# Public interface
if (outcome == success) of /interface=public:read-resource
/interface=public:write-attribute(name=inet-address,value=${jboss.bind.address,env.HOSTNAME:127.0.0.1})
end-if

# We want the CLI to be able to connect on 127.0.0.1
if (outcome == success) of /interface=management:read-resource
/interface=management:write-attribute(name=inet-address,value=${jboss.bind.address.management:0.0.0.0})
end-if

# http and https are bound to this interface
if (outcome != success) of /interface=bindall:read-resource
  /interface=bindall:add(inet-address=0.0.0.0)
end-if

#socket binding
if (outcome == success) of /socket-binding-group=standard-sockets/socket-binding=http:read-resource
  /socket-binding-group=standard-sockets/socket-binding=http:write-attribute(name=interface,value=bindall)
end-if

if (outcome == success) of /socket-binding-group=standard-sockets/socket-binding=https:read-resource
  /socket-binding-group=standard-sockets/socket-binding=https:write-attribute(name=interface,value=bindall)
end-if

#remove ajp and modcluster
if (outcome == success) of /subsystem=modcluster:read-resource
  /subsystem=modcluster:remove
end-if
if (outcome == success) of /subsystem=undertow/server=default-server/ajp-listener=ajp:read-resource
  /subsystem=undertow/server=default-server/ajp-listener=ajp:remove
end-if

if (outcome == success) of /socket-binding-group=standard-sockets/socket-binding=ajp:read-resource
  /socket-binding-group=standard-sockets/socket-binding=ajp:remove
end-if




© 2015 - 2024 Weber Informatics LLC | Privacy Policy