Classes
salt::api
: Init class for the salt-api. Contains all necessary classes and dependencies to manage salt-api.salt::api::config
: Class: salt::api::configsalt::api::install
: Class: salt::api::installsalt::api::service
: Class: salt::api::servicesalt::master
: Init class for the salt-master. Contains all necessary classes and dependencies to manage salt-master.salt::master::config
: Class: salt::master::configsalt::master::install
: Class: salt::master::installsalt::master::service
: Class: salt::master::servicesalt::minion
: Init class for the salt-minion. Contains all necessary classes and dependencies to manage salt-minion.salt::minion::config
: Class: salt::minion::configsalt::minion::install
: Class: salt::minion::installsalt::minion::service
: Class: salt::minion::servicesalt::pepper
: Class: salt::peppersalt::pepper::config
: Class: salt::pepper::configsalt::pepper::install
: Class: salt::pepper::install
Defined types
salt::api::config::create
: Define: salt::api::config::createsalt::generate_concat
: Define: salt::generate_concatsalt::master::config::create
: Define: salt::master::config::createsalt::minion::config::create
: Define: salt::minion::config::createsalt::repo
: Define for the SaltStack Repo Adds the nessesary package repo to download the SaltStack packages.
Functions
to_direct_yaml
: Convert a data structure and output it as YAML
Init class for the salt-api. Contains all necessary classes and dependencies to manage salt-api.
include salt::api
The following parameters are available in the salt::api
class.
Data type: Boolean
true or false. Manage the package Default: true
Data type: String[1]
Name of the package to install Default: salt-api
Data type: String
absent or present or any valid package version. Example: 2019.2.0+ds-1 (to install a specific version) Default: lookup('salt::master::package_ensure')
Data type: String
latest or any valid release. This variable is used for the repo url. More infos here: [https://repo.saltstack.com/] Example: 2019.2.0 (To pin the repo url to a specific version) Default: lookup('salt::master::package_release')
Data type: Optional[Variant[Array, Hash]]
Any additional packages you want to install. More infos, what you can set here: [https://forge.puppet.com/puppetlabs/stdlib/5.2.0/readme#ensure_packages] Default: undef
Data type: Boolean
true or false. Enable or disable the service Default: true
Data type: Enum['stopped', 'running']
stopped or running. Default: running
Data type: String
Set the service name to manage. Default: salt-api
Data type: Optional[Stdlib::Absolutepath]
Set the config dir. Default: /etc/salt
Data type: Stdlib::Absolutepath
Set the absolute config file path. Default: %{lookup('salt::api::config_dir')}/master
Data type: Optional[Hash]
Any config parameter you want to deploy. You can copy the YAML structure from your existing config file and paste it here. Default: undef
Class: salt::api::config
Class: salt::api::install
Class: salt::api::service
Init class for the salt-master. Contains all necessary classes and dependencies to manage salt-master.
include salt::master
The following parameters are available in the salt::master
class.
Data type: Boolean
true or false. Manage the package Default: true
Data type: String[1]
Name of the package to install Default: salt-master
Data type: String
absent or present or any valid package version. Example: 2019.2.0+ds-1 (to install a specific version) Default: present
Data type: String
latest or any valid release. This variable is used for the repo url. More infos here: [https://repo.saltstack.com/] Example: 2019.2.0 (To pin the repo url to a specific version) Default: latest
Data type: Optional[Variant[Array, Hash]]
Any additional packages you want to install. More infos, what you can set here: [https://forge.puppet.com/puppetlabs/stdlib/5.2.0/readme#ensure_packages] Default: undef
Data type: Boolean
true or false. Enable or disable the service Default: true
Data type: Enum['stopped', 'running']
stopped or running. Default: running
Data type: String
Set the service name to manage. Default: salt-master
Data type: Optional[Stdlib::Absolutepath]
Set the config dir. Default: /etc/salt
Data type: Stdlib::Absolutepath
Set the absolute config file path. Default: %{lookup('salt::master::config_dir')}/master
Data type: Optional[Hash]
Any config parameter you want to deploy. You can copy the YAML structure from your existing config file and paste it here. Example: log_level: info fileserver_backend: - roots Default: undef
Class: salt::master::config
Class: salt::master::install
Class: salt::master::service
Init class for the salt-minion. Contains all necessary classes and dependencies to manage salt-minion.
include salt::minion
The following parameters are available in the salt::minion
class.
Data type: Boolean
true or false. Manage the package Default: true
Data type: String[1]
Name of the package to install Default: salt-minion
Data type: String
absent or present or any valid package version. Example: 2019.2.0+ds-1 (to install a specific version) Default: lookup('salt::master::package_ensure')
Data type: String
latest or any valid release. This variable is used for the repo url. More infos here: [https://repo.saltstack.com/] Example: 2019.2.0 (To pin the repo url to a specific version) Default: lookup('salt::master::package_release')
Data type: Optional[Variant[Array, Hash]]
Any additional packages you want to install. More infos, what you can set here: [https://forge.puppet.com/puppetlabs/stdlib/5.2.0/readme#ensure_packages] Default: undef
Data type: Boolean
true or false. Enable or disable the service Default: true
Data type: Enum['stopped', 'running']
stopped or running. Default: running
Data type: String
Set the service name to manage. Default: salt-minion
Data type: Optional[Stdlib::Absolutepath]
Set the config dir. Default: /etc/salt
Data type: Stdlib::Absolutepath
Set the absolute config file path. Default: %{lookup('salt::minion::config_dir')}/minion
Data type: Optional[Hash]
Any config parameter you want to deploy. You can copy the YAML structure from your existing config file and paste it here. Default: undef
Class: salt::minion::config
Class: salt::minion::install
Class: salt::minion::service
Class: salt::pepper
The following parameters are available in the salt::pepper
class.
Data type: Boolean
Data type: String[1]
Data type: String
Data type: String
Data type: Optional[Variant[Array, Hash]]
Data type: Optional[Stdlib::Absolutepath]
Data type: Optional[Stdlib::Absolutepath]
Data type: Optional[Hash]
Data type: Optional[Stdlib::Absolutepath]
Data type: Optional[Stdlib::Absolutepath]
Data type: Optional[Array]
Class: salt::pepper::config
Class: salt::pepper::install
Define: salt::api::config::create
The following parameters are available in the salt::api::config::create
defined type.
Data type: Hash
Data type: String
Default value: $salt::api::config_file
Data type: Integer
Default value: 50
Define: salt::generate_concat
The following parameters are available in the salt::generate_concat
defined type.
Data type: Stdlib::Absolutepath
Default value: $title
Define: salt::master::config::create
The following parameters are available in the salt::master::config::create
defined type.
Data type: Hash
Data type: String
Default value: $salt::master::config_file
Data type: Integer
Default value: 50
Define: salt::minion::config::create
The following parameters are available in the salt::minion::config::create
defined type.
Data type: Hash
Data type: String
Default value: $salt::minion::config_file
Data type: Integer
Default value: 50
Define for the SaltStack Repo Adds the nessesary package repo to download the SaltStack packages.
The following parameters are available in the salt::repo
defined type.
Data type: String
latest or any valid release. This variable is used for the repo url. More infos here: [https://repo.saltstack.com/] Example: 2019.2.0 (To pin the repo url to a specific version)
Default value: $title
Data type: String
Base Repo URL from which to use to download the packages.
Default value: 'http://repo.saltstack.com'
Type: Ruby 4.x API
Convert a data structure and output it as YAML
# output yaml to a file
file { '/tmp/my.yaml':
ensure => file,
content => to_direct_yaml($myhash),
}
The to_direct_yaml function.
Returns: String
# output yaml to a file
file { '/tmp/my.yaml':
ensure => file,
content => to_direct_yaml($myhash),
}
Data type: Any