Sha256: 2ad34033244d9acec38cf948a012e8377e4bf931465cc01fa5599840307ad739

Contents?: true

Size: 765 Bytes

Versions: 20

Compression:

Stored size: 765 Bytes

Contents

# This code fragment downloads tomcat 7.0.53, creates an instance and adds a role and user
#
class { 'tomcat': }
class { 'java': }

tomcat::instance { 'mycat':
  catalina_base => '/opt/apache-tomcat/mycat',
  source_url    => 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz',
}->
tomcat::config::server::tomcat_users {
  'mycat-role-tester':
    ensure        => present,
    catalina_base => '/opt/apache-tomcat/mycat',
    element       => 'role',
    element_name  => 'tester';
  'mycat-user-example':
    ensure        => present,
    catalina_base => '/opt/apache-tomcat/mycat',
    element       => 'user',
    element_name  => 'example',
    password      => 'very-secret-password',
    roles         => ['tester'];
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-retrospec-1.8.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.7.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.6.1 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.6.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.5.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.4.1 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.4.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.3.2 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.3.1 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.3.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.2.1 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.2.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.1.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-1.0.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-0.12.1 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-0.12.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-0.11.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-0.10.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-0.9.1 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp
puppet-retrospec-0.9.0 spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp