Puppet Class: pulp::child::config

Defined in:
manifests/child/config.pp

Overview

Pulp Node Configuration

Parameters:

  • node_certificate (Any) (defaults to: $pulp::node_certificate)
  • verify_ssl (Any) (defaults to: $pulp::node_verify_ssl)
  • ca_path (Any) (defaults to: $pulp::node_server_ca_cert)
  • oauth_user_id (Any) (defaults to: $pulp::node_oauth_effective_user)
  • oauth_key (Any) (defaults to: $pulp::node_oauth_key)
  • oauth_secret (Any) (defaults to: $pulp::node_oauth_secret)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/child/config.pp', line 3

class pulp::child::config(
  $node_certificate = $pulp::node_certificate,
  $verify_ssl = $pulp::node_verify_ssl,
  $ca_path = $pulp::node_server_ca_cert,
  $oauth_user_id = $pulp::node_oauth_effective_user,
  $oauth_key = $pulp::node_oauth_key,
  $oauth_secret = $pulp::node_oauth_secret,
) {
  file { '/etc/pulp/nodes.conf':
    ensure  => 'file',
    content => template('pulp/nodes.conf.erb'),
  }

  # we need to make sure the goferd reads the current oauth credentials to talk
  # to the child node
  File['/etc/pulp/server.conf'] ~> Service['goferd']
}