Puppet Class: lightdm::config

Defined in:
manifests/config.pp

Overview

Class lightdm::config

Parameters:

  • config (Any) (defaults to: $lightdm::_config)
  • config_file (Any) (defaults to: $lightdm::config_file)
  • config_users_file (Any) (defaults to: $lightdm::config_users_file)
  • config_users (Any) (defaults to: $lightdm::config_users)


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
32
33
# File 'manifests/config.pp', line 2

class lightdm::config (
  $config            = $lightdm::_config,
  $config_file       = $lightdm::config_file,
  $config_users_file = $lightdm::config_users_file,
  $config_users      = $lightdm::config_users,
) {

  if $config != {} {
    file { 'lightdm.conf':
      ensure  => 'file',
      path    => $config_file,
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
      content => template("${module_name}/lightdm.conf.erb"),
      notify  => Class['lightdm::service']
    }
  }

  if $config_users != {} {
    file { 'users.conf':
      ensure => 'file',
      path => $config_users_file,
      owner => 'root',
      group => 'root',
      mode => '0644',
      content => template("${module_name}/users.conf.erb"),
      notify  => Class['lightdm::service']
    }
  }

}