Skip to content

Commit

Permalink
canvi example
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed Jun 7, 2019
1 parent 3763f65 commit 42c6028
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,27 @@ systemd::service { 'tomcat7':
}
```

System-V compatibility mode. The following code is used in **eyp-mcaffee** to enable the ma service on CentOS 7
System-V compatibility mode. A slightly different versions of the following code is used in **eyp-docker** to ensure a given container is running on CentOS 7

```puppet
systemd::sysvwrapper { 'ma':
initscript => '/etc/init.d/ma',
notify => Service['ma'],
before => Service['ma'],
file { "/etc/init.d/dockercontainer_${container_id}":
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0755',
content => file("${module_name}/container_init.sh"),
}
systemd::sysvwrapper { "dockercontainer_${container_id}":
initscript => "/etc/init.d/dockercontainer_${container_id}",
notify => Service["dockercontainer_${container_id}"],
before => Service["dockercontainer_${container_id}"],
}
service { "dockercontainer_${container_id}":
ensure => 'running',
enable => true,
require => File["/etc/init.d/dockercontainer_${container_id}"],
}
```

Expand Down

0 comments on commit 42c6028

Please sign in to comment.