onetimesecret
: Setup the One-Time Secret web application
onetimesecret::config
: Manage the One-Time Secret configurationonetimesecret::install
: Install the One-Time Secret distribution archiveonetimesecret::redis
: Setup a Redis instance for use with One-Time Secretonetimesecret::service
: Setup the One-Time Secret system serviceonetimesecret::user
: Create a user and group for One-Time Secret
Setup the One-Time Secret web application
The following parameters are available in the onetimesecret
class:
additional_packages
bundle_exec
config_dir
config_file
config_mode
config_template
data_dir
default_options
domain
download_url
gid
group
http_port
host
install_dir
log_dir
log_file
manage_additional_packages
manage_config
manage_redis
manage_service
manage_symlink
manage_user
options
path
pid_dir
pid_file
redis_password
redis_options
secret
service_enable
service_ensure
service_file
service_name
service_template
service_provider
symlink_name
uid
use_default_options
user
version
Data type: Array
A list of optional packages that may be required, depending on the configuration.
Data type: String
Path to the Ruby bundle executable.
Data type: String
Path to the directory containing the One-Time Secret configuration files.
Data type: String
The main One-Time Secret configuration file (absolute path required).
Data type: String
The permissions for the One-Time Secret configuration file.
Data type: String
The template used to create the One-Time Secret configuration file.
Data type: String
Path to the directory containing the persistent One-Time Secret data.
Data type: Hash
A hash containing the default configuration options.
Data type: String
The domain name that is used by One-Time Secret.
Data type: String
The base URL which will be used to download release files.
Data type: Optional[Integer]
The GID of the group.
Default value: undef
Data type: String
Specifies the group under which the One-Time Secret service will run.
Data type: Integer
The HTTP port of the One-Time Secrets web server. Note that this defaults to a non-standard port because you are expected to use a reverse proxy in front of the One-Time Secret web application.
Data type: String
The hostname that is used when One-Time Secret generates URLs (web/mail). Usually the FQDN which is served by a reverse proxy.
Data type: String
Base directory for the installation. A sub-directory for every version will automatically be created. Old versions will not be removed.
Data type: String
Directory for One-Time Secret log files.
Data type: String
The main One-Time Secret log file (absolute path required).
Data type: Boolean
Set to false
to disable the installation of dependencies which are
required to build and run One-Time Secret.
Data type: Boolean
Set to false
to disable managing of the One-Time Secret configuration
files.
Data type: Boolean
Set to false
to disable management of Redis.
Data type: Boolean
Set to false
to disable service management.
Data type: Boolean
Set to false
to disable the creation/update of a symlink to the current
version. Note that the symlink is required when using the default
configuration.
Data type: Boolean
Set to false
to disable the creation of a user and group for One-Time Secret.
Data type: Hash
Specifies a hash containing options to either overwrite some default values
or to configure One-Time Secret from scratch. Will be merged with the
$default_options
hash (as long as $use_default_options
is set to true
).
Data type: String
The contents of the PATH environment variable, which will be used for Exec
resources.
Data type: String
Specifies the directory for the One-Time Secret PID file.
Data type: String
The PID file for the main One-Time Secret web service (absolute path required).
Data type: String
A password for connections to the Redis server. It will also be used when setting up a new Redis instance for One-Time Secret.
Data type: Hash
Specifies a hash containing options to overwrite some default values
for the Redis service (as long as $manage_redis
is set to true
).
Data type: String
A global secret is included in the encryption key so it needs to be
long and secure. NOTE: Once the secret
is set, do not change it
(keep a backup offsite).
Data type: Boolean
Specifies whether the service should be enabled.
Data type: String
Specifies the desired state for the service.
Data type: Stdlib::Compat::Absolute_path
The path to the service file.
Data type: String
The name of the service.
Data type: String
The template that will be used to create the service file.
Data type: String
Specifies the service provider. Must be compatible with the operating system.
Data type: String
Controls the name of a version-independent symlink. It will always point
to the release specified by $version
.
Data type: Optional[Integer]
The UID of the user.
Default value: undef
Data type: Boolean
Set to false
to completely disable loading of the default configuration.
In this case you are required to provide a fully working configuration.
Data type: String
Specifies the user under which the One-Time Secret service will run.
Data type: String
The version of One-Time Secret thats should be installed. Supports several different values: a release tag (v0.9.2), a branch name (master) or a commit ID. Have a look at the One-Time Secret GitHub page for possible values.