Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,37 +89,11 @@ afs::afs_cron_job_minute: '42'

afs::package_adminfile: '/path/to/adminfile/noask'
afs::package_source: '/path/to/package/openafs-x.x.x-x-Sol10'
afs::service_provider: 'init'
```

On Solaris containers, this module will not start the OpenAFS service and the
cronjob will not be created. Packages are still installed for the included tools.

#### Service management

There are three different modes the module can handle services. The supported
operating systems has been configured according to the list below:
```
init:
<= EL6
<= Suse 11
Ubuntu
Solaris
hybrid:
Suse 12
EL7
systemd:
All versions not specified under `init` or `hybrid`.
```

Hybrid will use systemd to execute the init-script which will start the service.

For non-supported operating systems you'll have to choose which setup you want
to use.
Setting `init_template` will make make it use `init` method, setting both `init`
and `systemd` it will use hybrid and finally with `systemd_script_template` which
will use systemd.

## Limitations

This module has been tested to work on the following systems with Puppet
Expand Down
45 changes: 3 additions & 42 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ The following parameters are available in the `afs` class:
* [`config_client_path`](#-afs--config_client_path)
* [`config_client_update`](#-afs--config_client_update)
* [`create_symlinks`](#-afs--create_symlinks)
* [`init_script`](#-afs--init_script)
* [`init_template`](#-afs--init_template)
* [`systemd_script_template`](#-afs--systemd_script_template)
* [`systemd_unit_template`](#-afs--systemd_unit_template)
* [`links`](#-afs--links)
* [`package_adminfile`](#-afs--package_adminfile)
* [`package_name`](#-afs--package_name)
Expand Down Expand Up @@ -197,7 +193,7 @@ Default value: `'-dynroot -afsdb -daemons 6 -volumes 1000'`
Data type: `Boolean`

Boolean trigger for the cleaning of the client cache on start.
If set to true, the provided init script will clean the client cache when starting the service.
If set to true, client cache will be cleaned when starting the service.
Please check openafs-client config file for supported OS families.

Default value: `false`
Expand All @@ -223,8 +219,8 @@ Default value: `undef`

Data type: `Boolean`

Boolean trigger for the selfupdating routine in the init script.
If set to true, the init skript checks for updated AFS packages in the available repositories and installs them.
Boolean trigger for the selfupdating routine in the start script.
If set to true, checks for updated AFS packages in the available repositories and installs them.

Default value: `false`

Expand All @@ -236,41 +232,6 @@ Create symlinks for convenient access to AFS structure. Path and target are take

Default value: `false`

##### <a name="-afs--init_script"></a>`init_script`

Data type: `Stdlib::Unixpath`

Filename for the init script.

Default value: `'/etc/init.d/openafs-client'`

##### <a name="-afs--init_template"></a>`init_template`

Data type: `Optional[String]`

Name of the template file to be used for $init_script.
Installs init-script if specified.

Default value: `undef`

##### <a name="-afs--systemd_script_template"></a>`systemd_script_template`

Data type: `Optional[String]`

Name of the template file to be used as startup script for systemd.
Installs systemd script if specified.

Default value: `undef`

##### <a name="-afs--systemd_unit_template"></a>`systemd_unit_template`

Data type: `Optional[String]`

Name of the template file to be used as unit file for systemd.
Installs systemd unit file if specified.

Default value: `undef`

##### <a name="-afs--links"></a>`links`

Data type: `Hash`
Expand Down
2 changes: 0 additions & 2 deletions data/os/RedHat/5.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
afs::init_script: /etc/init.d/openafs-client
afs::init_template: openafs-client-RedHat-init
afs::package_name:
- openafs
- openafs-client
Expand Down
4 changes: 0 additions & 4 deletions data/os/RedHat/6.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions data/os/RedHat/7.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions data/os/RedHat/8.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions data/os/RedHat/9.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions data/os/Solaris.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---

afs::service_provider: init
afs::init_script: /etc/init.d/openafs-client
afs::init_template: openafs-client-Solaris

afs::afs_config_path: /usr/vice/etc
afs::cache_path: /usr/vice/cache
afs::config_client_dkms: false
Expand Down
4 changes: 0 additions & 4 deletions data/os/Suse/10.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions data/os/Suse/11.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions data/os/Suse/12.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions data/os/Suse/15.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions data/os/Ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---

afs::init_script: /etc/init.d/openafs-client
afs::init_template: openafs-client-Ubuntu-init

afs::afs_config_path: /etc/openafs
afs::cache_path: /var/cache/openafs
afs::config_client_dkms: true
Expand Down
Loading