Resource Type: wls_server

Defined in:
lib/puppet/type/wls_server.rb
Providers:
simple

Overview

This resource allows you to manage server in an WebLogic domain.

Here is an example on how you should use this:

wls_server { 'wlsServer2':
  ensure                            => 'present',
  arguments                         => '-XX:PermSize=256m -XX:MaxPermSize=256m -Xms752m -Xmx752m -Dweblogic.Stdout=/var/log/weblogic/wlsServer2.out -Dweblogic.Stderr=/var/log/weblogic/wlsServer2_err.out',
  jsseenabled                       => '0',
  listenaddress                     => '10.10.10.200',
  listenport                        => '8001',
  listenportenabled                 => 1,
  log_file_min_size                 => '2000',
  log_filecount                     => '10',
  log_number_of_files_limited       => 1,
  log_rotate_logon_startup          => 1,
  log_rotationtype                  => 'bySize',
  logfilename                       => '/var/log/weblogic/wlsServer2.log',
  log_datasource_filename           => 'logs/datasource.log',
  log_http_filename                 => 'logs/access.log',
  log_http_format                   => 'date time cs-method cs-uri sc-status',
  log_http_format_type              => 'common',
  log_http_file_count               => '10',
  log_http_number_of_files_limited  => '0',
  log_redirect_stderr_to_server     => '0',
  log_redirect_stdout_to_server     => '0',
  logintimeout                      => '5000',
  restart_max                       => '2',
  machine                           => 'Node2',
  sslenabled                        => 1,
  sslhostnameverificationignored    => 1,
  ssllistenport                     => '8201',
  two_way_ssl                       => '0',
  client_certificate_enforced       => '0',
  default_file_store                => '/path/to/default_file_store/',
  max_message_size                  => '25000000',
  weblogic_plugin_enabled           => 1,
}

In this example you are managing a managed server in the default domain. When you want to manage a managed server in a specific domain, you can use:

wls_server { 'my_domain/wlsServer1':
  ensure                            => 'present',
  arguments                         => '-XX:PermSize=256m -XX:MaxPermSize=256m -Xms752m -Xmx752m -Dweblogic.Stdout=/var/log/weblogic/wlsServer1.out -Dweblogic.Stderr=/var/log/weblogic/wlsServer1_err.out',
  jsseenabled                       => '0',
  listenaddress                     => '10.10.10.100',
  listenport                        => '8001',
  listenportenabled                 => 1,
  machine                           => 'Node1',
  sslenabled                        => '0',
  tunnelingenabled                  => '0',
  max_message_size                  => '10000000',
}

When the resource receives a notify, it will check if the managed server is currently running. If it is,#’ it will force a restart of the managed server. This will reload any new configuration.

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent

Parameters

  • provider

    The specific backend to use for this ‘wls_server` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.