Puppet Class: atom::config

Inherits:
atom::params
Defined in:
manifests/config.pp

Overview

atom::config

Handles the configuration files

Parameters:

  • disable_gpu (Boolean) (defaults to: $atom::params::disable_gpu)

    Specifies whether the atom application should be configured so that it is invoked with the –disable-gpu flag



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/config.pp', line 6

class atom::config (
  Boolean $disable_gpu = $atom::params::disable_gpu
) inherits atom::params {
  if $disable_gpu {
    file { '/etc/profile.d/atom.sh':
      ensure => file,
      source => 'puppet:///modules/atom/atom.sh',
    }
  } else {
    file { '/etc/profile.d/atom.sh':
      ensure => absent,
      source => 'puppet:///modules/atom/atom.sh',
    }
  }

  file { '/usr/share/applications/atom.desktop':
    ensure  => file,
    content => epp('atom/atom.desktop.epp'),
  }
}