Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

glassfish (29) Versions 0.7.4

Installs/Configures GlassFish Application Server

Berkshelf/Librarian
Policyfile
Knife
cookbook 'glassfish', '= 0.7.4'
cookbook 'glassfish', '= 0.7.4', :supermarket
knife cookbook site install glassfish
knife cookbook site download glassfish
README
Dependencies
Changelog
Quality

Description

Build Status

The glassfish cookbook installs and configures the GlassFish application server and the OpenMQ message broker bundled with the GlassFish application server. The cookbook also defines resources to create and configure GlassFish application domains and OpenMQ broker instances.

A sample project with a Vagrantfile that launches a glassfish instance is available in chef-glassfish-example project.

Requirements

Platform:

  • Ubuntu

Cookbooks:

  • java
  • authbind
  • archive
  • cutlery
  • runit (Recommended but not required)

Attributes

  • node['glassfish']['user'] - GlassFish User: The user that GlassFish executes as. Defaults to glassfish.
  • node['glassfish']['group'] - GlassFish Admin Group: The group allowed to manage GlassFish domains. Defaults to glassfish-admin.
  • node['glassfish']['version'] - Version: The version of the GlassFish install package. Defaults to 4.0.
  • node['glassfish']['variant'] - variant: The variant of the GlassFish install package. Usually payara or glassfish. Defaults to glassfish.
  • node['glassfish']['package_url'] - Package URL: The url to the GlassFish install package. Defaults to nil.
  • node['glassfish']['base_dir'] - GlassFish Base Directory: The base directory of the GlassFish install. Defaults to /usr/local/glassfish.
  • node['glassfish']['install_dir'] - GlassFish Install Directory: The directory into which glassfish is actually installed. Defaults to nil.
  • node['glassfish']['remove_domains_dir_on_install'] - A flag determining whether we should remove the domains directory. Defaults to true.
  • node['glassfish']['domains_dir'] - GlassFish Domain Directory: The directory containing all the domain instance data and configuration. Defaults to /srv/glassfish.
  • node['glassfish']['domains'] - GlassFish Domain Definitions: A map of domain definitions that drive the instantiation of a domain. Defaults to Mash.new.
  • node['openmq']['extra_libraries'] - Extract libraries for the OpenMQ Broker: A list of URLs to jars that are added to brokers classpath. Defaults to Mash.new.
  • node['openmq']['instances'] - GlassFish OpenMQ Broker Definitions: A map of broker definitions that drive the instantiation of a OpenMQ broker. Defaults to Mash.new.
  • node['openmq']['var_home'] - GlassFish OpenMQ Broker Directory: The directory containing all the broker instance data and configuration. Defaults to /var/omq.

Recipes

glassfish::attribute_driven_domain

Configures 0 or more GlassFish domains using the glassfish/domains attribute.

The attribute_driven_domain recipe interprets attributes on the node and defines the resources described in the attributes.

A typical approach is to define the configuration for the entire application on the node and include the recipe. Another approach using a vagrant file is to set the json attribute such as;

  chef.json = {
        "java" => {
            "install_flavor" => "oracle",
            "jdk_version" => 7,
            "oracle" => {
                "accept_oracle_download_terms" => true
            }
        },
        "glassfish" => {
            "version" => "4.0.1",
            "package_url" => "http://dlc.sun.com.edgesuite.net/glassfish/4.0.1/promoted/glassfish-4.0.1-b01.zip",
            "base_dir" => "/usr/local/glassfish",
            "domains_dir" => "/usr/local/glassfish/glassfish/domains",
            "domains" => {
                "myapp" => {
                    "config" => {
                        "min_memory" => 1024,
                        "max_memory" => 1024,
                        "max_perm_size" => 256,
                        "port" => 7070,
                        "admin_port" => 4848,
                        "username" => "adminuser",
                        "password" => "adminpw",
                        "master_password" => "mykeystorepassword",
                        "remote_access" => false,
                        "jvm_options" => ["-DMYAPP_CONFIG_DIR=/usr/local/myapp/config", "-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true"],
                        "secure" => false
                    },
                    'extra_libraries' => {
                        'realm' => {
                          'type' => 'common',
                          'url' => 'https://s3.amazonaws.com/somebucket/lib/realm.jar',
                          'requires_restart' => true
                        },
                        'jdbcdriver' => {
                          'type' => 'common',
                          'url' => 'https://s3.amazonaws.com/somebucket/lib/mysql-connector-java-5.1.25-bin.jar'
                        },
                        'encryption' => {
                          'type' => 'common',
                          'url' => 'https://s3.amazonaws.com/somebucket/lib/jasypt-1.9.0.jar'
                        }
                    },
                    'threadpools' => {
                      'thread-pool-1' => {
                        'maxthreadpoolsize' => 200,
                        'minthreadpoolsize' => 5,
                        'idletimeout' => 900,
                        'maxqueuesize' => 4096
                      },
                      'http-thread-pool' => {
                        'maxthreadpoolsize' => 200,
                        'minthreadpoolsize' => 5,
                        'idletimeout' => 900,
                        'maxqueuesize' => 4096
                      },
                      'admin-pool' => {
                        'maxthreadpoolsize' => 50,
                        'minthreadpoolsize' => 5,
                        'maxqueuesize' => 256
                      }
                    },
                    'iiop_listeners' => {
                      'orb-listener-1' => {
                        'enabled' => true,
                        'iiopport' => 1072,
                        'securityenabled' => false
                      }
                    },
                    'context_services' => {
                      'concurrent/MyAppContextService' => {
                        'description' => 'My Apps ContextService'
                      }
                    },
                    'managed_thread_factories' => {
                      'concurrent/myThreadFactory' => {
                        'threadpriority' => 12,
                        'description' => 'My Thread Factory'
                      }
                    },
                    'managed_executor_services' => {
                      'concurrent/myExecutorService' => {
                        'threadpriority' => 12,
                        'description' => 'My Executor Service'
                      }
                    },
                    'managed_scheduled_executor_services' => {
                      'concurrent/myScheduledExecutorService' => {
                        'corepoolsize' => 12,
                        'description' => 'My Executor Service'
                      }
                    },
                    'jdbc_connection_pools' => {
                        'RealmPool' => {
                            'config' => {
                                'datasourceclassname' => 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource',
                                'restype' => 'javax.sql.DataSource',
                                'isconnectvalidatereq' => 'true',
                                'validationmethod' => 'auto-commit',
                                'ping' => 'true',
                                'description' => 'Realm Pool',
                                'properties' => {
                                   'Instance' => "jdbc:mysql://devdb.somecompany.com:3306/realmdb",
                                   'ServerName' => "devdb.somecompany.com",
                                   'User' => 'realmuser',
                                   'Password' => 'realmpw',
                                   'PortNumber' => '3306',
                                   'DatabaseName' => 'realmdb'
                                }
                            },
                            'resources' => {
                                'jdbc/Realm' => {
                                    'description' => 'Resource for Realm Pool',
                                }
                            }
                        },
                        'AppPool' => {
                            'config' => {
                                'datasourceclassname' => 'com.mysql.jdbc.jdbc2.optional.MysqlDataSource',
                                'restype' => 'javax.sql.DataSource',
                                'isconnectvalidatereq' => 'true',
                                'validationmethod' => 'auto-commit',
                                'ping' => 'true',
                                'description' => 'App Pool',
                                'properties' => {
                                  'Instance' => "jdbc:mysql://devdb.somecompany.com:3306/appdb",
                                  'ServerName' => "devdb.somecompany.com",
                                  'User' => 'appuser',
                                  'Password' => 'apppw',
                                  'PortNumber' => '3306',
                                  'DatabaseName' => 'appdb'
                                }
                            },
                            'resources' => {
                                'jdbc/App' => {
                                    'description' => 'Resource for App Pool',
                                }
                            }
                        }
                    },
                    'realms' => {
                        'custom-realm' => {
                            'classname' => 'com.somecompany.realm.CustomRealm',
                            'jaas-context' => 'customRealm',
                            'properties' => {
                                'jaas-context' => 'customRealm',
                                'datasource' => 'jdbc/Realm',
                                'groupQuery' => 'SELECT ...',
                                'passwordQuery' => 'SELECT ...'
                            }
                         }
                    },
                    'realm_types' => {
                        'customRealm' => 'com.somecompany.realm.CustomLoginModule'
                    },
                    'deployables' => {
                        'myapp' => {
                            'url' => 'https://s3.amazonaws.com/somebucket/apps/app.war',
                            'context_root' => '/'
                         }
                    },
                    "custom_resources" => {
                      "env/myapp/timeout" => {
                        "restype" => "java.lang.Long",
                        "value" => 300000
                      },
                      "env/myapp/mykey" => "123",
                      "env/myapp/someString" => "XYZ"
                    }
                }
            }
        }

glassfish::attribute_driven_mq

Configures 0 or more GlassFish OpenMQ brokers using the openmq/instances attribute.

The attribute_driven_mq recipe interprets attributes on the node and defines the resources described in the attributes.

glassfish::default

Downloads, and extracts the glassfish binaries, creates the glassfish user and group.

Does not create any Application Server or Message Broker instances. This recipe is not typically included directly but is included transitively through either <code>glassfish::attribute_driven_domain</code> or <code>glassfish::attribute_driven_mq</code>.

glassfish::search_driven_domain

Configures 0 or more GlassFish domains using search to generate the configuration.

Resources

glassfish_admin_object

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • jndi_name:
  • raname:
  • restype:
  • enabled: Defaults to <code>true</code>.
  • target: Defaults to <code>"server"</code>.
  • classname: Defaults to <code>nil</code>.
  • description: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_asadmin

Asadmin is the command line application used to manage a GlassFish application server. Typically this resource is used when there is not yet a resource defined in this cookbook for executing an underlying command on the server.

Actions

  • run: Execute the command. Default action.

Attribute Parameters

  • command: The command to execute.
  • returns: A return code or an array of return codes that are considered successful completions. Defaults to <code>0</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

Examples

# List all the domains on the server
glassfish_asadmin "list-domains" do
   domain_name 'my_domain'
end

glassfish_auth_realm

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • realm_name:
  • target: Defaults to <code>"server"</code>.
  • classname:
  • jaas_context: Defaults to <code>nil</code>.
  • assign_groups: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_connector_connection_pool

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • pool_name:
  • description: Defaults to <code>nil</code>.
  • raname:
  • connectiondefinition:
  • steadypoolsize: Defaults to <code>nil</code>.
  • maxpoolsize: Defaults to <code>nil</code>.
  • maxwait: Defaults to <code>nil</code>.
  • poolresize: Defaults to <code>nil</code>.
  • idletimeout: Defaults to <code>nil</code>.
  • leaktimeout: Defaults to <code>nil</code>.
  • validateatmostonceperiod: Defaults to <code>nil</code>.
  • maxconnectionusagecount: Defaults to <code>nil</code>.
  • creationretryattempts: Defaults to <code>nil</code>.
  • creationretryinterval: Defaults to <code>nil</code>.
  • isconnectvalidatereq: Defaults to <code>nil</code>.
  • failconnection: Defaults to <code>nil</code>.
  • leakreclaim: Defaults to <code>nil</code>.
  • lazyconnectionenlistment: Defaults to <code>nil</code>.
  • lazyconnectionassociation: Defaults to <code>nil</code>.
  • associatewiththread: Defaults to <code>nil</code>.
  • matchconnections: Defaults to <code>nil</code>.
  • ping: Defaults to <code>nil</code>.
  • pooling: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • transactionsupport:
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_connector_resource

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • resource_name:
  • poolname:
  • enabled: Defaults to <code>true</code>.
  • target: Defaults to <code>"server"</code>.
  • objecttype: Defaults to <code>nil</code>.
  • description: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_context_service

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • jndi_name:
  • target: Defaults to <code>"server"</code>.
  • enabled: Determines whether container contexts are propagated to threads. If set to true, the contexts specified in the --contextinfo option are propagated. If set to false, no contexts are propagated and the --contextinfo option is ignored. Defaults to <code>true</code>.
  • contextinfoenabled: Defaults to <code>true</code>.
  • contextinfo: Descriptive details about the resource. Defaults to <code>"Classloader,JNDI,Security,WorkArea"</code>.
  • description:
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_custom_resource

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • jndi_name:
  • target: Defaults to <code>"server"</code>.
  • restype: Defaults to <code>"java.lang.String"</code>.
  • factoryclass: Defaults to <code>"org.glassfish.resources.custom.factory.PrimitivesAndStringFactory"</code>.
  • enabled: Defaults to <code>true</code>.
  • description: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • value: Defaults to <code>nil</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_deployable

Actions

  • deploy: Default action.
  • disable:
  • enable:
  • undeploy:

Attribute Parameters

  • component_name:
  • version: Defaults to <code>nil</code>.
  • target: Defaults to <code>"server"</code>.
  • url: Defaults to <code>nil</code>.
  • enabled: Defaults to <code>true</code>.
  • type: Defaults to <code>nil</code>.
  • context_root: Defaults to <code>nil</code>.
  • virtual_servers: Defaults to <code>[]</code>.
  • generate_rmi_stubs: Defaults to <code>false</code>.
  • availability_enabled: Defaults to <code>false</code>.
  • lb_enabled: Defaults to <code>true</code>.
  • keep_state: Defaults to <code>false</code>.
  • verify: Defaults to <code>false</code>.
  • precompile_jsp: Defaults to <code>true</code>.
  • async_replication: Defaults to <code>true</code>.
  • properties: Defaults to <code>{}</code>.
  • descriptors: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_domain

Creates a GlassFish application domain, creates an OS-level service and starts the service.

Actions

  • create: Create the domain, enable and start the associated service. Default action.
  • destroy: Stop the associated service and delete the domain directory and associated artifacts.

Attribute Parameters

  • min_memory: Defaults to <code>512</code>.
  • max_memory: The amount of heap memory to allocate to the domain in MiB. Defaults to <code>512</code>.
  • max_perm_size: The amount of perm gen memory to allocate to the domain in MiB. Defaults to <code>96</code>.
  • max_stack_size: The amount of stack memory to allocate to the domain in KiB. Defaults to <code>350</code>.
  • port: The port on which the HTTP service will bind. Defaults to <code>8080</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • portbase: Portbase from which port and admin_port are automatically calculated. Defaults to <code>nil</code>.
    • Warning: This can't be used together with admin_port
  • extra_jvm_options: An array of extra arguments to pass the JVM. Defaults to <code>[]</code>.
  • java_agents: An array of javaagent arguments to pass the JVM. Defaults to <code>[]</code>.
  • env_variables: A hash of environment variables set when running the domain. Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • master_password: Password used to access the keystore. Defaults to password if unset. Defaults to <code>nil</code>.
  • password: Password to use when communicating with the domain. Must be set if username is set. Defaults to <code>nil</code>.
  • password_file: The file in which the password is saved. Should be set if username is set. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • logging_properties: A hash of properties that will be merged into logging.properties. Use this to send logs to syslog or graylog. Defaults to <code>{}</code>.
  • realm_types: A map of names to realm implementation classes that is merged into the default realm types. Defaults to <code>{}</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.
  • init_style: The init system used to run the service. Defaults to <code>"upstart"</code>.

Examples

# Create a basic domain that logs to a central graylog server
glassfish_domain "my_domain" do
  port 80
  admin_port 8103
  extra_libraries ['https://github.com/downloads/realityforge/gelf4j/gelf4j-0.9-all.jar']
  logging_properties {
    "handlers" => "java.util.logging.ConsoleHandler, gelf4j.logging.GelfHandler",
    ".level" => "INFO",
    "java.util.logging.ConsoleHandler.level" => "INFO",
    "gelf4j.logging.GelfHandler.level" => "ALL",
    "gelf4j.logging.GelfHandler.host" => 'graylog.example.org',
    "gelf4j.logging.GelfHandler.defaultFields" => '{"environment": "' + node.chef_environment + '", "facility": "MyDomain"}'
  }
end

glassfish_iiop_listener

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • iioplistener_id:
  • target: Defaults to <code>"server"</code>.
  • listeneraddress: Either the IP address or the hostname (resolvable by DNS).
  • iiopport: The IIOP port number. Defaults to <code>1072</code>.
  • securityenabled: If set to true, the IIOP listener runs SSL. You can turn SSL2 or SSL3 ON or OFF and set ciphers using an SSL element. The security setting globally enables or disables SSL by making certificates available to the server instance. Defaults to <code>false</code>.
  • enabled: If set to true, the IIOP listener is enabled at runtime. Defaults to <code>true</code>.
  • properties: Optional attribute name/value pairs for configuring the IIOP listener. Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_javamail_resource

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • jndi_name:
  • target: Defaults to <code>"server"</code>.
  • mailhost:
  • mailuser:
  • fromaddress:
  • storeprotocol:
  • storeprotocolclass:
  • transprotocol:
  • transprotocolclass:
  • debug: Defaults to <code>nil</code>.
  • enabled: Defaults to <code>true</code>.
  • description: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_jdbc_connection_pool

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • pool_name:
  • datasourceclassname: Defaults to <code>nil</code>.
  • initsql: Defaults to <code>nil</code>.
  • sqltracelisteners: Defaults to <code>nil</code>.
  • driverclassname: Defaults to <code>nil</code>.
  • validationclassname: Defaults to <code>nil</code>.
  • validationtable: Defaults to <code>nil</code>.
  • steadypoolsize: Defaults to <code>nil</code>.
  • maxpoolsize: Defaults to <code>nil</code>.
  • maxwait: Defaults to <code>nil</code>.
  • poolresize: Defaults to <code>nil</code>.
  • idletimeout: Defaults to <code>nil</code>.
  • validateatmostonceperiod: Defaults to <code>nil</code>.
  • leaktimeout: Defaults to <code>nil</code>.
  • statementleaktimeout: Defaults to <code>nil</code>.
  • creationretryattempts: Defaults to <code>nil</code>.
  • creationretryinterval: Defaults to <code>nil</code>.
  • statementtimeout: Defaults to <code>nil</code>.
  • maxconnectionusagecount: Defaults to <code>nil</code>.
  • statementcachesize: Defaults to <code>nil</code>.
  • isisolationguaranteed: Defaults to <code>nil</code>.
  • isconnectvalidatereq: Defaults to <code>nil</code>.
  • failconnection: Defaults to <code>nil</code>.
  • allownoncomponentcallers: Defaults to <code>nil</code>.
  • nontransactionalconnections: Defaults to <code>nil</code>.
  • statmentleakreclaim: Defaults to <code>nil</code>.
  • leakreclaim: Defaults to <code>nil</code>.
  • lazyconnectionenlistment: Defaults to <code>nil</code>.
  • lazyconnectionassociation: Defaults to <code>nil</code>.
  • associatewiththread: Defaults to <code>nil</code>.
  • matchconnections: Defaults to <code>nil</code>.
  • ping: Defaults to <code>nil</code>.
  • pooling: Defaults to <code>nil</code>.
  • wrapjdbcobjects: Defaults to <code>nil</code>.
  • description: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • restype: Defaults to <code>nil</code>.
  • isolationlevel:
  • validationmethod:
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_jdbc_resource

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • resource_name:
  • connectionpoolid:
  • enabled: Defaults to <code>true</code>.
  • target: Defaults to <code>"server"</code>.
  • description: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_jms_resource

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • name:
  • target: Defaults to <code>"server"</code>.
  • restype: Defaults to <code>"javax.jms.Queue"</code>.
  • enabled: Defaults to <code>true</code>.
  • description: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_library

Actions

  • add: Default action.
  • remove:

Attribute Parameters

  • url:
  • library_type: Defaults to <code>"common"</code>.
  • upload: Defaults to <code>true</code>.
  • requires_restart: Defaults to <code>false</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.
  • init_style: The init system used to run the service. Defaults to <code>"upstart"</code>.

glassfish_managed_executor_service

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • jndi_name:
  • target: Defaults to <code>"server"</code>.
  • enabled: Determines whether container contexts are propagated to threads. If set to true, the contexts specified in the --contextinfo option are propagated. If set to false, no contexts are propagated and the --contextinfo option is ignored. Defaults to <code>true</code>.
  • contextinfoenabled: Defaults to <code>true</code>.
  • contextinfo: Descriptive details about the resource. Defaults to <code>"Classloader,JNDI,Security,WorkArea"</code>.
  • description:
  • threadpriority: Specifies the priority to assign to created threads. Defaults to <code>5</code>.
  • longrunningtasks: Specifies whether the resource should be used for long-running tasks. If set to true, long-running tasks are not reported as stuck. Defaults to <code>false</code>.
  • hungafterseconds: Specifies the number of seconds that a task can execute before it is considered unresponsive. If the value is 0 tasks are never considered unresponsive. Defaults to <code>0</code>.
  • corepoolsize: Specifies the number of threads to keep in a thread pool, even if they are idle. Defaults to <code>0</code>.
  • maximumpoolsize: Specifies the maximum number of threads that a thread pool can contain. Defaults to <code>2147483647</code>.
  • keepaliveseconds: Specifies the number of seconds that threads can remain idle when the number of threads is greater than corepoolsize. Defaults to <code>60</code>.
  • threadlifetimeseconds: Specifies the number of seconds that threads can remain in a thread pool before being purged, regardless of whether the number of threads is greater than corepoolsize or whether the threads are idle. The value of 0 means that threads are never purged. Defaults to <code>0</code>.
  • taskqueuecapacity: Specifies the number of submitted tasks that can be stored in the task queue awaiting execution. Defaults to <code>2147483647</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_managed_scheduled_executor_service

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • jndi_name:
  • target: Defaults to <code>"server"</code>.
  • enabled: Determines whether container contexts are propagated to threads. If set to true, the contexts specified in the --contextinfo option are propagated. If set to false, no contexts are propagated and the --contextinfo option is ignored. Defaults to <code>true</code>.
  • contextinfoenabled: Defaults to <code>true</code>.
  • contextinfo: Descriptive details about the resource. Defaults to <code>"Classloader,JNDI,Security,WorkArea"</code>.
  • description:
  • threadpriority: Specifies the priority to assign to created threads. Defaults to <code>5</code>.
  • longrunningtasks: Specifies whether the resource should be used for long-running tasks. If set to true, long-running tasks are not reported as stuck. Defaults to <code>false</code>.
  • hungafterseconds: Specifies the number of seconds that a task can execute before it is considered unresponsive. If the value is 0 tasks are never considered unresponsive. Defaults to <code>0</code>.
  • corepoolsize: Specifies the number of threads to keep in a thread pool, even if they are idle. Defaults to <code>0</code>.
  • keepaliveseconds: Specifies the number of seconds that threads can remain idle when the number of threads is greater than corepoolsize. Defaults to <code>60</code>.
  • threadlifetimeseconds: Specifies the number of seconds that threads can remain in a thread pool before being purged, regardless of whether the number of threads is greater than corepoolsize or whether the threads are idle. The value of 0 means that threads are never purged. Defaults to <code>0</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_managed_thread_factory

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • jndi_name:
  • target: Defaults to <code>"server"</code>.
  • enabled: Determines whether container contexts are propagated to threads. If set to true, the contexts specified in the --contextinfo option are propagated. If set to false, no contexts are propagated and the --contextinfo option is ignored. Defaults to <code>true</code>.
  • contextinfoenabled: Defaults to <code>true</code>.
  • contextinfo: Descriptive details about the resource. Defaults to <code>"Classloader,JNDI,Security,WorkArea"</code>.
  • description:
  • threadpriority: Specifies the priority to assign to created threads. Defaults to <code>5</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_mq

Creates an OpenMQ message broker instance, creates an OS-level service and starts the service.

Actions

  • create: Create the message broker instance, enable and start the associated service. Default action.
  • destroy: Stop the associated service and delete the instance directory and associated artifacts.

Attribute Parameters

  • max_memory: The amount of heap memory to allocate to the domain in MiB. Defaults to <code>512</code>.
  • max_stack_size: The amount of stack memory to allocate to the domain in KiB. Defaults to <code>250</code>.
  • instance: The name of the broker instance.
  • users: A map of users to passwords for interacting with the service. Defaults to <code>{}</code>.
  • access_control_rules: An access control list of patterns to users. Defaults to <code>{}</code>.
  • logging_properties: A hash of properties that will be merged into logging.properties. Use this to send logs to syslog or graylog. Defaults to <code>{"handlers"=>"java.util.logging.ConsoleHandler", ".level"=>"INFO", "java.util.logging.ConsoleHandler.level"=>"INFO"}</code>.
  • config: A map of key-value properties that are merged into the OpenMQ configuration file. Defaults to <code>{}</code>.
  • queues: A map of queue names to queue properties. Defaults to <code>{}</code>.
  • topics: A map of topic names to topic properties. Defaults to <code>{}</code>.
  • jmx_admins: A map of username to password for read-write JMX admin interface. Ignored unless jmx_port is specified. Defaults to <code>{}</code>.
  • jmx_monitors: A map of username to password for read-only JMX admin interface. Ignored unless jmx_port is specified. Defaults to <code>{}</code>.
  • admin_user: The user in the users map that is used during administration. Defaults to <code>"imqadmin"</code>.
  • port: The port for the portmapper to bind. Defaults to <code>7676</code>.
  • admin_port: The port on which admin service will bind. Defaults to <code>7677</code>.
  • jms_port: The port on which jms service will bind. Defaults to <code>7678</code>.
  • jmx_port: The port on which jmx service will bind. If not specified, no jmx service will be exported. Defaults to <code>nil</code>.
  • stomp_port: The port on which the stomp service will bind. If not specified, no stomp service will execute. Defaults to <code>nil</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.
  • init_style: The init system used to run the service. Defaults to <code>"upstart"</code>.

Examples

# Create a basic mq broker instance
glassfish_mq "MessageBroker" do
  port 80
  jmx_port 8089
  jmx_admins { 'admin' => 'secret1' }
  jmx_monitors { 'monitoring_system' => 'secret2' }
  logging_properties {
    "handlers" => "java.util.logging.ConsoleHandler, gelf4j.logging.GelfHandler",
      ".level" => "INFO",
      "java.util.logging.ConsoleHandler.level" => "INFO",
      "gelf4j.logging.GelfHandler.level" => "ALL",
      "gelf4j.logging.GelfHandler.host" => 'graylog.example.org',
      "gelf4j.logging.GelfHandler.defaultFields" => '{"environment": "' + node.chef_environment + '", "facility": "MyInstance"}'
  }
  users { 'MyApp' => 'MyAppsPassword', 'MyOtherApp' => 'S3Cr37' }
  queues { 'MySystem.MyMessageQueue' => {'XMLSchemaURIList' => 'http://example.com/...'} }
  access_control_rules {
    'queue.MySystem.MyMessageQueue.browse.allow.user' => '*',
      'queue.MySystem.MyMessageQueue.produce.allow.user' => 'MyApp',
      'queue.MySystem.MyMessageQueue.consume.allow.user' => 'MyOtherApp'
  }
end

glassfish_mq_destination

Creates or deletes a queue or a topic in an OpenMQ message broker instance.

Actions

  • create: Create the destination. Default action.
  • destroy: Destroy the destination.

Attribute Parameters

  • destination_name: The name of the destination.
  • queue: True if the destination is a queue, false for a topic.
  • config: The configuration settings for queue. Valid properties include those exposed by JMX. Also supports the key 'schema' containing a URL which expands to 'validateXMLSchemaEnabled=true' and 'XMLSchemaURIList=$uri'. Defaults to <code>{}</code>.
  • host: The host of the OpenMQ message broker instance.
  • port: The port of the portmapper service in message broker instance.
  • username: The username used to connect to message broker. Defaults to <code>"imqadmin"</code>.
  • passfile: The filename of a property file that contains a password for admin user set using the property "imq.imqcmd.password".
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

Examples

# Create a queue destination
glassfish_destination "MySystem.MyMessageQueue" do
  queue true
  config {'schema' => 'http://example.org/MyMessageFormat.xsd'}
  host "localhost"
  port 7676
  username 'imqadmin'
  passfile '/etc/omq/omqadmin.pass'
end

glassfish_mq_ensure_running

Ensures that a OpenMQ message broker instance has had a chance to finish starting before proceeding.

Actions

  • run: Block until the broker has come online. Default action.

Attribute Parameters

  • host: The host on which the broker runs.
  • port: The port on which the broker listens.

Examples

# Wait for OpenMQ broker to start
glassfish_mq_ensure_running "wait for broker" do
  host "localhost"
  port 7676
end

glassfish_property

Actions

  • set: Default action.

Attribute Parameters

  • key:
  • value:
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_resource_adapter

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • resource_adapter_name:
  • threadpoolid: Defaults to <code>nil</code>.
  • objecttype: Defaults to <code>nil</code>.
  • properties: Defaults to <code>{}</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

glassfish_secure_admin

Enable or disable secure admin flag on the GlassFish server which enables/disables remote administration.

Actions

  • enable: Enable remote access/secure admin. Default action.
  • disable: Disable remote access/secure admin.

Attribute Parameters

  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.
  • init_style: The init system used to run the service. Defaults to <code>"upstart"</code>.

Examples

glassfish_secure_admin "My Domain Remote Access" do
   action :enable
end

glassfish_thread_pool

Actions

  • create: Default action.
  • delete:

Attribute Parameters

  • threadpool_id:
  • target: Defaults to <code>"server"</code>.
  • maxthreadpoolsize: Specifies the maximum number of threads the pool can contain. Defaults to <code>5</code>.
  • minthreadpoolsize: Specifies the minimum number of threads in the pool. These are created when the thread pool is instantiated. Defaults to <code>2</code>.
  • idletimeout: Specifies the amount of time in seconds after which idle threads are removed from the pool. Defaults to <code>900</code>.
  • maxqueuesize: Specifies the maximum number of messages that can be queued until threads are available to process them for a network listener or IIOP listener. A value of -1 specifies no limit. Defaults to <code>4096</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.
  • init_style: The init system used to run the service. Defaults to <code>"upstart"</code>.

glassfish_web_env_entry

Set a value that can be retrieved as a web env entry in a particular web application. This resource is idempotent and will not set the entry if it already exists and has the same value. Nil values can be specified. The java type of the value must also be specified.

Actions

  • set: Set the value as entry. Default action.
  • unset: Remove the entry.

Attribute Parameters

  • webapp: The name of the web application name.
  • name: The key name of the web env entry.
  • type: The java type name of env entry. Defaults to <code>"java.lang.String"</code>.
  • value: The value of the entry. Defaults to <code>nil</code>.
  • description: A description of the entry. Defaults to <code>nil</code>.
  • domain_name: The name of the domain.
  • terse: Use terse output from the underlying asadmin. Defaults to <code>false</code>.
  • echo: If true, echo commands supplied to asadmin. Defaults to <code>true</code>.
  • username: The username to use when communicating with the domain. Defaults to <code>nil</code>.
  • password_file: The file in which the password must be stored assigned to appropriate key. Defaults to <code>nil</code>.
  • secure: If true use SSL when communicating with the domain for administration. Defaults to <code>false</code>.
  • admin_port: The port on which the web management console is bound. Defaults to <code>4848</code>.
  • system_user: The user that the domain executes as. Defaults to node['glassfish']['user'] if unset. Defaults to <code>nil</code>.
  • system_group: The group that the domain executes as. Defaults to node['glassfish']['group'] if unset. Defaults to <code>nil</code>.

Examples

glassfish_web_env_entry "Set IntegrationServerURL" do
   domain_name 'my_domain'
   name 'IntegrationServerURL'
   value 'http://example.com/Foo'
   type 'java.lang.String'
end

License and Maintainer

Maintainer:: Peter Donald

License:: Apache 2.0

v0.7.4:

  • Change : Added support for portbase in the domain creation command.
  • Bug: : Fix handling of description attribute in connector_connection_pool lwrp.
  • Bug: : Fix bug where defaulting value for master_password could allow a password under 6 characters that will no work with later versions of Payara/GlassFish.
  • Enhance : Support rmi_port attribute on mq resource so jmx rmi port can be a fixed number and thus possible to pass through firewall rules.
  • Enhance : Support arrays of users for access control rules of mq resource.
  • Enhance : Add support for Payara 4.1.1.154.
  • Enhance : Support deploying glassfish with zero deployables.
  • Bug: : Work around bugs in GlassFish 3.1.2.2 with jvm_options LWRP.
  • Change : Move the broker configuraiton of destinations, users, and access control rules below the instance key rather than at top level of mq configuration.

v0.7.2:

  • Enhance : Remove runit and and upstart as supported init styles. Largely due to problems getting GlassFish to in Payara releases simultaneously with GlassFish releases is difficult when the cookbook reaches into the innards of glassfish.
  • Enhance : Guess the type of custom_resource values based on the ruby value.
  • Enhance : Add support for Payara 4.1.151 and 4.1.152.
  • Bug : Correct the mechanisms for setting JVM properties.
  • Enhance : Speed up several resources by caching properties and checking properties prior to performing actions.

v0.6.4:

  • Enhance : Initial support for deploying Payara 4.1.144 rather than the Oracle branded GlassFish.
  • Enhance : Set the default node['glassfish']['package_url'] to nil and attempt to derive the package url in the default.rb recipe. The url is derived based on the specified version.
  • Enhance : Add an attribute describing the install variant (Payara or GlassFish).
  • Enhance : Add timeouts to all the bash resources, including the only_if and not_if checks. This avoids the scenario where a hung GlassFish results in a hung chef run.

v0.6.2:

  • Change : Check multiple urls to ensure glassfish is up and add a wait after the check. This attempts to ensure that the admin console is correctly initialized prior to accessing it in other resources.
  • Bug : Fix the secure_admin LWRP so that it works, even when the secure flag is set for the domain.
  • Enhance : Later versions of Java 7 and Java 8 require that keystore passwords are greater than 6 characters. If a domain's master_password is under 6 characters then the creation of a domain would silently fail to create the keystore and then the 'enable-secure-admin' resource would fail. If the master_password is unspecified then the password attribute for the domain must be 6 characters or more. This is now enforced by raising an exception during domain creation if the password is not long enough.
  • Bug : Ensure undeploy action of the glassfish_deployable resource correctly correctly matches against deployable's name in the only_if guard. Submitted by sshapoval.
  • Enhance : Under debian default the init style to runit.
  • Bug : Ensure that the grep in the guards used when determining whether to create/update resources do not treat values as special grep characters.
  • Bug : Stop using versions in names of deployables as several bugs within GlassFish are triggered by this feature. In particular this includes bugs in the concurrency, batch and SOAP libraries. This results in versions of the artifacts being stored on the filesystem.
  • Bug : Don't attempt to create user if system_user for glassfish domain is set to root.
  • Enhance : Explicitly support master_password configuration for a glassfish domain.
  • Change : Add a configuration property node['glassfish']['remove_domains_dir_on_install'] that controls whether the domains directory is removed when glassfish version is upgraded or initially installed.
  • Change : Avoid custom domain.xml and use domain.xml files supplied by glassfish.
  • Bug : Rework jms_resources and connector related resources so that the resources defined in each section will not contend.
  • Bug : Fix compatibility with later versions of Chef 11.
  • Bug : Fix bug with attribute_driven_domain recipe so that boolean custom_resources with a false value are not deleted at the end of a converge.
  • Bug : Fix the ssl bug so that domain without remote_access can be deployed.
  • Enhance : Use the archive cookbook to retrieve the glassfish package. Use the node['glassfish']['install_dir'] configuration property to get at base directory of version.
  • Enhance : Add default-web.xml template to support deploying glassfish 4.1.
  • Bug : Avoid recreating jms resources every run. Reported by Karsten Planz.
  • Enhance : Add RealityForge::GlassFish helper class and record the "current" glassfish domain and broker instance in the attribute-driven recipes.
  • Bug : Fix bug in domain specific asadmin script so that parameters are passed through as is.
  • Enhance : Include a default-web.xml that turns off the xpowerdBy flag for the jsp servlet.
  • Enhance : Increase the default stack of the glassfish domain so that it works on later versions of 64-bit Java 7.

v0.6.0:

  • Enhance : Avoid some warnings from asadmin that are internal glassfish4 issues.
  • Enhance : Add LWRPs to manage concurrency resources within GlassFish 4.
  • Enhance : Add iiop_listener LWRP to manage the iiop-listeners within GlassFish.
  • Bug : Ensure thread-pools that are not part of the configuration are deleted.
  • Change : Default to installing GlassFish 4.0.

v0.5.30:

  • Enhance : Add thread_pool LWRP to manage the thread-pools within GlassFish. Ensure it is correctly called attribute_driven_domain recipe.
  • Bug : Only delete the index.html in docroot during install, not every converge.
  • Enhance : Recursively create omq runtime directory.
  • Enhance : Ensure auth_realm properties are updated if changed after initial creation.
  • Enhance : Initial support for RHEL by using a custom upstart script. Submitted By Jim Dowling.
  • Enhance : Support using 'root' as the system user. Submitted By Mike Thomas.
  • Enhance : Improve mechanism for accessing version to be portable to older versions of ruby. Submitted By Mike Thomas.
  • Enhance : Improve documentation for the attribute driven recipe. Submitted by Mike Thomas.
  • Enhance : Support requires_restart parameter on the glassfish_library LWRP. Submitted by Mike Thomas.
  • Change : Set the unask to 0022 to allow logstash and other applications access to the generated logs. Submitted by Gert Leenders.
  • Enhance : Rework the glassfish_secure_admin functionality to be more resilient regardless of the init_style and version of glassfish in use.
  • Enhance : Support runit as an init style.
  • Enhance : Work around some warnings issued by GlassFish 4 install.
  • Enhance : Initial support for GlassFish 4.
  • Enhance : Add significantly more logging to help debugging issues.
  • Bug : Fix permission on glassfish home directory so that the .asadmintruststore file can be created.
  • Change : Set the default stack size to 250 in mq broker LWRP so that the LWRP works without specifying a value under Java 7 x64 systems.
  • Enhance : Support init_style on glassfish_mq LWRP. Add initial support for runit.

v0.5.28:

  • Change : Remove version specifier in cutlery dependency constraint as it can trigger a bug in Chef 11's dependency resolver.
  • Bug : Relax some permissions on directories and files downloaded from remote sources to allow group access as the way Vagrant maps the cache directory means that the user can be modified to vagrant. Suggested by Martin Algesten.
  • Bug : Support non-string "value" parameters in attribute_driven_domain for custom_resource elements and web_env_entries elements.
  • Enhance : Sort elements within the attribute_driven_domain recipe in each section by a priority field if present. The default priority is 100 if unspecified.
  • Change : Convert hooks for including recipes in the attribute_driven_recipe from being an array of recipes to a hash where the key is the recipe name. Improves the interoperability with deep merges.
  • Enhance : Ensure that the parameters of the glassfish_jdbc_connection_pool LWRP and the glassfish_jdbc_resource are updated even if the resource exists.
  • Bug : Enable the Glassfish domain service aswell as starting it.
  • Enhance : Remove domains in the attribute_driven_domain recipe when there is no longer any configuration to represent domain.
  • Enhance : Add the before and after hooks for the deployable element in the attribute_driven_domain recipe.
  • Bug : Ensure that the 'min_memory' config value on the glassfish domain is reflected from the configuration onto the domain LWRP in the attribute_driven_domain recipe.
  • Bug : Rework the destroy action on the glassfish_domain LWRP to avoid invoking the asadmin command and potentially failing if the domain is in an inconsistent state.
  • Bug : Ensure that libraries cached copy is unique per domain to avoid scenario where file can be owned by a different domain.
  • Enhance : Support the specification of different system users for each glassfish domain in all the LWRPs and the attribute_driven_domain recipe.
  • Change : Default the 'glassfish/domains_dir' attribute to /srv/glassfish.
  • Bug : Fix configuration of factoryclass parameter on glassfish_custom_resource in attribute_driven_domain recipe. Submitted by Ian Caughley.
  • Bug : Fix allowable values of transactionsupport parameter to include XATransaction rather than XATransaction in glassfish_connector_connection_pool.
  • Bug : Fix for glassfish_domain resource sourcing template from cookbook where it is used.
  • Bug : Added mq_ensure_running resource to replace upstart check which was causing issues on IPv6 enabled hosts. ~ Jordan Hagan
  • Bug : Consistency fix for attributes used to generate password hash in OpenMQ passwd file.

v0.5.24:

  • Bug : Fix the attribute_driven_domain to avoid undeploying OSGi deployables every second run.
  • Change : Append versions to the name of OSGi components rather than storing the version on the file system in a file.
  • Enhance : Don't require the url parameter in the glassfish_deployable LWRP as it is only required for the deploy action.
  • Enhance : Add the ability to hook into the configuration of domains in attribute_driven_domain recipe by adding recipes to include before and after a domain is configured.
  • Bug : Stop trying to undeploy non-existent resources when server is not upa at start of chef run.

v0.5.22:

  • Change : Replace the use of cutlery's notifying_action with Chef 11's use_inline_resources method.
  • Bug : Ensure that changes to custom resources are updated on the glassfish server if required.

v0.5.20:

  • Bug : Ensure terse and echo flags are correctly passed to asadmin command.
  • Fix : Ensure that alternative domain paths are supported.
  • Change : Prefer new notification syntax.
  • Change : Avoid downloading remote artifacts (deployables, libraries and base install) if they will not actually be used by adding some not_if guards.

v0.5.18:

  • Change : Attempting to redeploy the glassfish server in to a directory while an existing service is currently running results in an error in usermod "usermod: user glassfish is currently logged in". Change the default attributes for the home directory so that glassfish is always installed to a fixed location to avoid this scenario in the future.
  • Change : Support file:// urls in glassfish_deployable LWRP.
  • Change : Avoid checking for port availability when creating the domain.
  • Change : Rework the deployable so that the non-osgi components will store the version information as part of the name. This avoids the scenario where redeploying the same application with a different version could undeploy the existing application but fail to deploy the new version. The new approach will enable the old version only when the new deployable successfully deploys.

v0.5.16:

  • Change : Stop using LWRPs to gather the scan the list of resources to delete in the attribute_driven_domain recipe and instead execute the code inline. Refactor the asadmin library to make it easier to implement this functionality.

v0.5.14:

  • Change : Extract the utility code out into the 'cutlery' cookbook.

v0.5.12:

  • Bug : Fix regression where properties were not escaping the ':' or '=' characters correctly.

v0.5.10:

  • Enhance : Set umask to 0700 for services.
  • Enhance : Escape a more complete set of shell characters when escaping properties. Identified by Robin Wenglewski.
  • Change : Support specification of the library_type in the extra_libraries section while evaluating the attribute_driven_domain recipe. Submitted by Robin Wenglewski.
  • Change : Make glassfish user a system user.
  • Bug : Ensure all services have the status flag enabled.
  • Bug : Stop starting the glassfish service multiple times in the glassfish_domain LWRP and remove duplicate actions that caused issues in later versions of chef and how it interacted with upstart services.
  • Change : Upgrade to the 3.1.2.2 version of Glassfish. There was several crippling bugs in the 3.1.2 version.
  • Bug : Fix the guard in the glassfish_property LWRP so it will not execute if not needed.
  • Bug : Fix bug that prevented the deletion of historic web_env_entries.
  • Bug : Fix bug due to looking for web_env_entries in osgi deployables. Resulted in errors in glassfish log.
  • Bug : Ensure that the sort key if any is passed to the blend_search_results_into_node method
  • Bug : Avoid attempting to delete the list file if it does not exist. Bug can be expressed when glassfish is installed but not running or the domain does not exist.
  • Enhance : Add some default JVM options. (-Dfile.encoding=UTF-8 and -Djava.awt.headless=true)
  • Enhance : Default to not setting the server name in HTTP response by defaulting the product.name system property.
  • Enhance : Expand the realm_types parameter of the domain to support chained configs, flags options in configuration.

v0.5.8:

  • Change : Remove extra_libraries parameter from the glassfish_domain LWRP and replace it's use in the attribute_driven_domain recipe with uses of the glassfish_library LWRP.
  • Enhance : Add a glassfish_library LWRP that can add and remove libraries of various types to the instance.
  • Change : Update the attribute_driven_domain recipe to use the keys; - 'admin_objects' rather than 'admin-objects' - 'jaas_context' rather than 'jaas-context' - 'assign_groups' rather than 'assign-groups'
  • Enhance : Update the glassfish_secure_admin LWRP to immediately restart the service if invoked.
  • Enhance : In the attribute_driven_domain recipe, delete sub-components that are no longer present in the node configuration. The sub-components include things such as resources, realms, pools, deployables etc.
  • Bug : Ensure that the delete action on the glassfish_custom_resource LWRP actually executes.
  • Enhance : Add returns parameter to the glassfish_asadmin LWRP that is directly applied to underlying bash resource.
  • Enhance : Pass through the ignore_failure flag on the glassfish_asadmin resource to the underlying resource.
  • Enhance : Add in a search_driven_domain recipe to simplify the collection of data for the attribute_driven_domain recipe.
  • Change : Make jaas_context optional in the glassfish_auth_realm LWRP. Submitted By Adrian Stanila.
  • Change : Use default_action DSL rather than constructor to specify default actions for LWRPs. This means the plugin requires Chef v0.10.10 or higher.
  • Bug : Fix the usage of the enabled flag in several resource centric LWRPs. Submitted By Adrian Stanila.
  • Bug : Fix the usage of the debug flag in the javamail resource LWRP.
  • Bug : Fix the usage of the target flag in several resource centric LWRPs. Ensure the guard conditions pass the correct target flag. Submitted By Adrian Stanila.
  • Bug : Remove obsolete target flag from jdbc_connection_pool, connector_connection_pool, resource_adapter LWRPs.

v0.5.6:

  • Change : Rename the attribute tree used to define javamail resources in the glassfish::attribute_driven_domain recipe from javamail-resources to javamail_resources.
  • Change : Cache the deployable and deployment plan using the 'version' attribute on the glassfish_deployable LWRP rather than the basename of the URL as the url may not necessarily be unique.
  • Enhance : Make the the 'version' attribute on the glassfish_deployable LWRP optional and derive it from the url if not specified.

v0.5.5:

  • Bug : Fix the version checking in the glassfish_deployable LWRP that had an extra brace.

v0.5.4:

  • Bug : Revert the default the value of node['openmq']['extra_libraries'] to be an empty hash as simplifies attribute merges and restores compatibility with the v0.0.45 of cookbook.
  • Change : Update the attribute_driven_domain recipe so that domain takes a hash for the 'extra_libraries' configuration to make it easy to merge attribute data from multiple sources.

v0.5.3:

  • Enhance : Add the a LWRP: glassfish_javamail_resource.

v0.5.2:

  • Enhance : Ensure non properties are supported in "properties" parameter passed to various resources.
  • Enhance : Add the LWRPs: glassfish_resource_adapter,glassfish_connector_resource, glassfish_admin_object' and glassfish_connector_connection_pool.

v0.5.1:

  • Change : Set the rmi hostname to the fully qualified domain name.
  • Change : Force the networking layer to use ipv4 so as not to interfere JMX interoperability.

v0.5.0:

  • Enhance : Support specifying environment variables for the glassfish domain using the attribute driven recipe.
  • Change : Remove the glassfish_jvm_option LWRP as the functionality is now provided via the glassfish_domain LWRP.
  • Enhance : Sort output in configuration files to avoid incorrect service restarts due to non-deterministic ordering.
  • Bug : Replace init.d script with upstart script to eases service management.
  • Bug : Fix failure with mq LWRP's destroy action resulting from incorrect provider specified.

v0.4.49:

  • Bug : Fix bug introduced in v0.4.48 relating to how the minimum memory is set.
  • Enhance : Abort the init script if it fails to start up for "too long" (Currently 60s).

v0.4.48:

  • Change : Remove the jdbc/__default resource and the associated DerbyPool resource.
  • Enhance : Support a minimum memory size when configuring domains.

v0.4.47:

  • Enhance : Add support for configuration of many more parameters for glassfish_deployable resource, including generation of a deployment plan.
  • Enhance : Update resources so that they notify if any of the sub-resources have changed.
  • Change : Rename deployable_key to component_name for the glassfish_deployable resource to bring it inline with GlassFish documentation.
  • Bug : Fix the documentation for the glassfish_web_env_entry resource.
  • Bug : Ensure that the destroy action of the glassfish_domain resource runs as the correct user.
  • Enhance : Add enable and disable actions to the glassfish_deployable resource.
  • Enhance : Update the glassfish_deployable resource with several new attributes to configure different options during deployment.

v0.4.46:

  • Enhance : Support the unset action on the glassfish_web_env_entry resource.
  • Change : Convert the following resources to using more strongly typed attributes; glassfish_web_env_entry, glassfish_property, glassfish_auth_realm, glassfish_jdbc_connection_pool, glassfish_jdbc_resource.
  • Bug : Ensure that the glassfish domain is restarted if a a support library is added.
  • Change : Update the glassfish_jvm_option resource to support the target attribute.
  • Enhance : Support the delete action on the following resources; glassfish_auth_realm, glassfish_custom_resource, glassfish_jdbc_connection_pool, glassfish_jdbc_resource, glassfish_jdbc_resource.
  • Enhance : Add a glassfish_secure_admin resource that either enables or disables remote administration.
  • Bug : Ensure unzip package is installed otherwise the initial install will fail.
  • Bug : Fix bug where a failure during package install could leave the system in an unrecoverable state as the partial install directory existed.
  • Change : Use create_if_missing when downloading resources.
  • Change : Disable the xpowered-by header by default.
  • Change : Update the base directory to be specific to the version. i.e. /usr/local/glassfish-3.1.2
  • Change : Update to GlassFish installing 3.1.2 by default.
  • Bug : Stop overriding the log formatter in logging properties files as GlassFish requires a specific formatter.
  • Change : Remove the usage of the node['glassfish']['package_checksum'] property as the url identifies a fixed version.
  • Change : Explicitly name the cookbook.
  • Bug : Default the value of node['openmq']['extra_libraries'] to an empty array rather than a hash.

v0.0.45:

  • Change : Update the GlassFish application server resources to cease the dependence on on attributes and rely on parameters passed to the resource.
  • Change : Move the creation of domains directory into the glassfish_domain resource.
  • Change : Expand the 'schema' key in MQ destination configurations in the glassfish_mq_destination resource rather than the glassfish_mq resource.
  • Change : The username for the glassfish_mq_destination now defaults to 'imqadmin'.
  • Change : The base directory in which the OpenMQ instances are stored is now retrieved via the node['openmq']['var_home'] property rather than being configured on the resource or in the domain definition.
  • Enhance : Several changes to the code style of the cookbook and steps to start using foodcritic to check cookbook.
  • Enhance : Add some basic documentation to the README.

v0.0.44:

  • Enhance : Support the deployment of OSGi bundles using the 'glassfish_deployable' resource by setting the type parameter to ':osgi'. OSGi bundles are deployed prior to the realms or any other commands being executed as they can be the modules providing the capability.
  • Enhance : Allow the configuration of the set of login modules in the 'glassfish_domain' resource and the associated attribute driven recipes.

v0.0.43:

  • Change : Update the glassfish_mq resource so that it is necessary to explicitly specify the jmx admins and monitors rather than relying on a search in a 'users' data bag search.

v0.0.42:

  • Change : Split the managed_domains into two attribute driven recipes. One to create domains and one to create brokers.
  • Change : Change the name of the attribute used to drive the creation of the domains to glassfish.domains.

v0.0.41:

  • Change : Remove the searching of other nodes to locate the OpenMQ topics, queues, users and access control rules as that is a business specific policy that has no place in a generic cookbook.

v0.0.40:

  • Enhance : Support the logging_properties attribute on the domain resource and in the managed_domains recipe. This makes it possible to configure the logging.properties file generated for the Glassfish application server.

v0.0.39:

  • Enhance : Support the logging_properties attribute being mapped from the managed_domains recipe.

v0.0.38:

  • Enhance : Support the logging_properties attribute on the mq resource. This makes it possible to configure the logging.properties file generated for the OpenMQ server.
  • Bug : Explicitly configure the OpenMQ server logging settings. This avoids the scenario where the stomp bridge log can grow without bounds.

v0.0.37:

  • Bug : Stop the OpenMQ server restarting every chef run. Resulting from both the server and the chef rewriting the config file. Now chef will only rewrite the file if some of the settings have changed.

v0.0.36:

  • Enhance : Initial convergence of OpenMQ server will no longer require a restart of the server.

v0.0.35:

  • Enhance : Initial convergence of glassfish application server will no longer require a restart if extra libraries are specified.

v0.0.34:

  • Change : Default to supplying the "force" flag during application deployment.
  • Bug : Stop the Glassfish application server restarting when a web env entry or jndi resource is updated.
  • Enhance : Enhance the init scripts for the glassfish application server and the openmq server will only return when the server is up and listening to expected ports.
  • Enhance : Support null values in web env entries.
  • Bug : Fix escaping of string values in custom jndi resources.

v0.0.32:

  • Initial release

Foodcritic Metric
            

0.7.4 failed this metric

FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/1924d9a361175100f5546748/glassfish/recipes/attribute_driven_mq.rb:77
FC014: Consider extracting long ruby_block to library: /tmp/cook/1924d9a361175100f5546748/glassfish/recipes/attribute_driven_domain.rb:318
FC017: LWRP does not notify when updated: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/mq_ensure_running.rb:19
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/domain.rb:114
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/domain.rb:119
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/mq.rb:168
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/mq.rb:175
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/mq.rb:182
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/mq.rb:189
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/mq.rb:196
FC023: Prefer conditional attributes: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/mq.rb:203
FC034: Unused template variables: /tmp/cook/1924d9a361175100f5546748/glassfish/templates/default/init.d.erb:1
FC048: Prefer Mixlib::ShellOut: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/deployable.rb:48
FC048: Prefer Mixlib::ShellOut: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/jvm_options.rb:27
FC048: Prefer Mixlib::ShellOut: /tmp/cook/1924d9a361175100f5546748/glassfish/providers/property_cache.rb:22
FC048: Prefer Mixlib::ShellOut: /tmp/cook/1924d9a361175100f5546748/glassfish/recipes/attribute_driven_domain.rb:213