File: init.pp

package info (click to toggle)
puppet-strings 4.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,412 kB
  • sloc: ruby: 7,324; makefile: 12
file content (31 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Class: test
#
#   This class exists to serve as fixture data for testing the puppet strings face
#
# @example
#   class { "test": }
#
# @param package_name The name of the package
# @param service_name The name of the service
# @param myenum
# @enum myenum a Option A
# @enum myenum b Option B
class test (
  $package_name = $test::params::package_name,
  $service_name = $test::params::service_name,
  Enum['a', 'b'] $myenum = 'a',

) inherits test::params {

  # validate parameters here

  class { 'test::install': } ->
  class { 'test::config': } ~>
  class { 'test::service': } ->
  Class['test']

  File {
    owner => 'user',
    path => 'some/file/path',
  }
}