GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dhoppe/puppet-screen: This module installs and configures the Screen package.

This repository was archived by the owner on Nov 27, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

96 Commits
96 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
files/common/etc
files/common/etc
 
 
manifests
manifests
 
 
spec
spec
 
 
.fixtures.yml
.fixtures.yml
 
 
.gitignore
.gitignore
 
 
.msync.yml
.msync.yml
 
 
.rspec
.rspec
 
 
.rubocop.yml
.rubocop.yml
 
 
.sync.yml
.sync.yml
 
 
.travis.yml
.travis.yml
 
 
.yardopts
.yardopts
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Gemfile
Gemfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
metadata.json
metadata.json
 
 

Repository files navigation

screen

Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with screen
    • What screen affects
    • Setup requirements
    • Beginning with screen
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This module installs and configures the Screen package.

Module Description

This module handles installing and configuring Screen across a range of operating systems and distributions.

Setup

What screen affects

  • screen package.
  • screen configuration file.

Setup Requirements

  • Puppet >= 3.0
  • Facter >= 1.6
  • Extlib module
  • Stdlib module

Beginning with screen

Install screen with the default parameters (No configuration files will be changed).

    class { 'screen': }

Install screen with the recommended parameters.

    class { 'screen':
      config_file_source => 'puppet:///modules/screen/common/etc/screenrc',
    }

Usage

Update the screen package.

    class { 'screen':
      package_ensure => 'latest',
    }

Remove the screen package.

    class { 'screen':
      package_ensure => 'absent',
    }

Purge the screen package (All configuration files will be removed).

    class { 'screen':
      package_ensure => 'purged',
    }

Deploy the configuration files from source directory.

    class { 'screen':
      config_dir_source => 'puppet:///modules/screen/common/etc',
    }

Deploy the configuration files from source directory (Unmanaged configuration files will be removed).

    class { 'screen':
      config_dir_purge  => true,
      config_dir_source => 'puppet:///modules/screen/common/etc',
    }

Deploy the configuration file from source.

    class { 'screen':
      config_file_source => 'puppet:///modules/screen/common/etc/screenrc',
    }

Deploy the configuration file from string.

    class { 'screen':
      config_file_string => '# THIS FILE IS MANAGED BY PUPPET',
    }

Deploy the configuration file from template.

    class { 'screen':
      config_file_template => 'screen/common/etc/screenrc.erb',
    }

Deploy the configuration file from custom template (Additional parameters can be defined).

    class { 'screen':
      config_file_template     => 'screen/common/etc/screenrc.erb',
      config_file_options_hash => {
        'key' => 'value',
      },
    }

Deploy additional configuration files from source, string or template.

    class { 'screen':
      config_file_hash => {
        'screenrc.2nd' => {
          config_file_path   => '/etc/screenrc.2nd',
          config_file_source => 'puppet:///modules/screen/common/etc/screenrc.2nd',
        },
        'screenrc.3rd' => {
          config_file_path   => '/etc/screenrc.3rd',
          config_file_string => '# THIS FILE IS MANAGED BY PUPPET',
        },
        'screenrc.4th' => {
          config_file_path     => '/etc/screenrc.4th',
          config_file_template => 'screen/common/etc/screenrc.4th.erb',
        },
      },
    }

Reference

Classes

Public Classes

  • screen: Main class, includes all other classes.

Private Classes

  • screen::install: Handles the packages.
  • screen::config: Handles the configuration file.

Parameters

package_ensure

Determines if the package should be installed. Valid values are 'present', 'latest', 'absent' and 'purged'. Defaults to 'present'.

package_name

Determines the name of package to manage. Defaults to 'screen'.

package_list

Determines if additional packages should be managed. Defaults to 'undef'.

config_dir_ensure

Determines if the configuration directory should be present. Valid values are 'absent' and 'directory'. Defaults to 'directory'.

config_dir_path

Determines if the configuration directory should be managed. Defaults to '/etc'

config_dir_purge

Determines if unmanaged configuration files should be removed. Valid values are 'true' and 'false'. Defaults to 'false'.

config_dir_recurse

Determines if the configuration directory should be recursively managed. Valid values are 'true' and 'false'. Defaults to 'true'.

config_dir_source

Determines the source of a configuration directory. Defaults to 'undef'.

config_file_ensure

Determines if the configuration file should be present. Valid values are 'absent' and 'present'. Defaults to 'present'.

config_file_path

Determines if the configuration file should be managed. Defaults to '/etc/screenrc'

config_file_owner

Determines which user should own the configuration file. Defaults to 'root'.

config_file_group

Determines which group should own the configuration file. Defaults to 'root'.

config_file_mode

Determines the desired permissions mode of the configuration file. Defaults to '0644'.

config_file_source

Determines the source of a configuration file. Defaults to 'undef'.

config_file_string

Determines the content of a configuration file. Defaults to 'undef'.

config_file_template

Determines the content of a configuration file. Defaults to 'undef'.

config_file_require

Determines which package a configuration file depends on. Defaults to 'Package[screen]'.

config_file_hash

Determines which configuration files should be managed via screen::define. Defaults to '{}'.

config_file_options_hash

Determines which parameters should be passed to an ERB template. Defaults to '{}'.

Limitations

This module has been tested on:

  • Debian 6/7/8
  • Ubuntu 12.04/14.04/16.04

Development

Bug Report

If you find a bug, have trouble following the documentation or have a question about this module - please create an issue.

Pull Request

If you are able to patch the bug or add the feature yourself - please make a pull request.

Contributors

The list of contributors can be found at: https://github.com/dhoppe/puppet-screen/graphs/contributors

About

This module installs and configures the Screen package.

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.