perforce

pdk
Perforce client and server

Mike Marseglia

mmarseglia

3,545 downloads

3,545 latest version

4.6 quality score

Version information

  • 0.0.4 (latest)
released Jan 5th 2019
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x
  • Puppet 5.x
  • CentOS

Start using this module

Documentation

mmarseglia/perforce — version 0.0.4 Jan 5th 2019

perforce

Build Status

Table of Contents

  1. Description
  2. Setup - The basics of getting started with perforce
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Description

Install and configure the revision control system Helix, by Perforce.

Setup

What perforce affects OPTIONAL

This module will install the perforce service, p4d. It will create a systemd unit file to manage the service.

Setup Requirements OPTIONAL

At a minimum you must create the perforce root directory (which holds the p4d databases) and a user account to run the service (default user is perforce).

Beginning with perforce

      $user = 'perforce'
      $service_root = '/opt/perforce/p4root'
  
      user { $user :
        ensure     => present,
        home       => $service_root,
        system     => true,
      }
      -> file { ['/opt/perforce', $service_root ] :
        ensure => directory,
        owner  => $user,
        mode   => '0750',
      }
      -> class { 'perforce': }

Usage

Just Install Packages

If you don't want the module to manage perforce's configuration you can install just the packages.

class { ::perforce::repository: }
-> class { ::perforce::install: }

Configuring Perforce for SSL/TLS

This module will configure the p4d service for SSL by setting service_ssldir to a fully qualified path. You must also provide a private key and certificate. p4d requires these files are named privatekey.txt and certificate.txt.

      $service_ssldir = "/opt/perforce/p4ssldir"
      $private_key = "-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDHYb8MmF7Bimo5
XubrQyTOcJmJORiK0eTbGJGm/nhTa4Kv1GB0+g+9+nSQwcxK3An+zMfwY7Ej269u
PwI+KlwtgvOCr22hQoO14KUHzqGAxjKB+vfLssMcaXs1mLndVmWJM9wVA9O1nzYs
iA6tfd0yOHUXxUqktTVB9JHGA5/6nQb63Snhk1rOHddSjDoO+iL6lmXZFG6x4I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jlS8pjGNb8wHwYDVR0jBBgwFoAUB+oUrgz5RiBnRE9hSjlS8pjGNb8w
DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAcvzyiNgYYRffoO5lzMjg
eOyO0F8+FZdZRDUwijAC8eRsBDD7vfJIhYdIp2wyqbLXFd4oA/8Lw4f92ETiUfdV
E7oG94dNzbk4sIZCtQWIiPiFeqEDGM+465goiuNeb+N0zHO5/4xO+tF8RW7MV2gc
ekQx4dzFV6CatsLkzQKMZHqDyRMXkebp36FdKmEbg/VH2P04JKIMQo0wc0L82dxn
SUSxBKdUCRIml+kXJZPE0CC+DtPcv1pzPAFLCDNQwdreurKk+KE985RKanx9iZdS
7RyghSDie7e/KhwfQjfreCUXSfV/3sAKajYv3LyWCc3WAE11Ugg8DUK+i55WikjC
WA==
-----END CERTIFICATE-----"

      file { $service_ssldir :
        ensure => directory,
        owner  => 'perforce',
        mode   => '0700',
      }
      -> file { "${service_ssldir}/privatekey.txt":
        ensure  => file,
        owner   => 'perforce',
        mode    => '0600',
        content => $private_key,
      }
      -> file {"${service_ssldir}/certificate.txt":
        ensure  => file,
        owner   => 'perforce',
        mode    => '0600',
        content => $certificate,
      }
      -> class { 'perforce':
        service_ssldir  => $service_ssldir
      }

Reference

Limitations

  • Developed and tested on CentOS 7.
  • Requires systemd.

Development

Fork and submit a PR.

Release Notes/Contributors/Etc. Optional