Puppet Class: pulp::consumer::config

Defined in:
manifests/consumer/config.pp

Overview

Pulp Consumer Configuration



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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'manifests/consumer/config.pp', line 3

class pulp::consumer::config {
  file { '/etc/pulp/consumer/consumer.conf':
    ensure  => 'file',
    content => template('pulp/consumer.conf.erb'),
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
  }

  if $pulp::consumer::enable_rpm {
    file { '/etc/yum/pluginconf.d/pulp-profile-update.conf':
      ensure  => 'file',
      content => template('pulp/pulp-profile-update.conf.erb'),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }

    file { '/etc/pulp/agent/conf.d/bind.conf':
      ensure  => 'file',
      content => template('pulp/agent_bind.conf.erb'),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }

    file { '/etc/pulp/agent/conf.d/linux.conf':
      ensure  => 'file',
      content => template('pulp/agent_linux.conf.erb'),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }

    file { '/etc/pulp/agent/conf.d/rpm.conf':
      ensure  => 'file',
      content => template('pulp/agent_rpm.conf.erb'),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }
  }

  if $pulp::consumer::enable_puppet {
    file { '/etc/pulp/agent/conf.d/puppet_bind.conf':
      ensure  => 'file',
      content => template('pulp/agent_puppet_bind.conf.erb'),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }

    file { '/etc/pulp/agent/conf.d/puppet_module.conf':
      ensure  => 'file',
      content => template('pulp/agent_puppet_module.conf.erb'),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }
  }
}