Puppet Class: atom

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

Overview

Class: atom

Manage installation and configuration of atom on Ubuntu, installing from ppa

Examples:

Declaring the class

include atom

Declaring the class with parameters

class { 'atom':
  disable_gpu => true,
}

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

  • package_ensure (String) (defaults to: $atom::params::package_ensure)

    Specifies whether to install the atom package, and what version to install



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/init.pp', line 14

class atom (
  String  $package_ensure = $atom::params::package_ensure,
  Boolean $disable_gpu    = $atom::params::disable_gpu
) inherits atom::params {

  class { 'atom::install':
    package_ensure => $package_ensure,
  }

  class { 'atom::config':
    disable_gpu => $disable_gpu,
  }

  contain atom::install
  contain atom::config

  Class['::atom::install']
  -> Class['::atom::config']
}