Yuvipanda has submitted this change and it was merged.
Change subject: puppetception: Remove module
......................................................................
puppetception: Remove module
Nobody's used it anywhere, and the person who initially
wrote it now has +2 on this repo and has not had time nor
interest from anyone else in developing this further...
Change-Id: Ib738913fca005b65579c5c72a1dd0b0c16b15d6d
---
D modules/puppetception/manifests/init.pp
D modules/puppetception/templates/puppetception.erb
2 files changed, 0 insertions(+), 84 deletions(-)
Approvals:
Yuvipanda: Verified; Looks good to me, approved
diff --git a/modules/puppetception/manifests/init.pp
b/modules/puppetception/manifests/init.pp
deleted file mode 100644
index b3f2d0a..0000000
--- a/modules/puppetception/manifests/init.pp
+++ /dev/null
@@ -1,72 +0,0 @@
-# == Class: puppetception
-#
-# Puppetception is an easy way to setup a labs project that
-# uses a puppet repository that is *not* operations/puppet.git.
-# This is for volunteer projects that want to use a puppetied
-# environment but find it too hard to use operations/puppet or
-# already have a puppet repository they want to reuse.
-#
-# The class sets up a git clone of the specified repository
-# at the specified path, and auto pulls it to the specified
-# branch on each run. Also provides a 'puppetception' command
-# that when run will run puppet on the cloned repository.
-#
-# == Parameters
-#
-# [*git_url*]
-# The url to the git repository containing the puppet files
-# the project wants to use
-#
-# [*git_branch*]
-# The name of the git branch to pull.
-# Defaults to 'master'
-#
-# [*puppet_subdir*]
-# The name of the dir inside the repository where the puppet
-# files reside. This is useful if the remote repo contains
-# other files unrelated to puppet, and the puppet files are
-# in one particular subfolder.
-#
-
-class puppetception(
- $git_url,
- $git_branch = 'master',
- $puppet_subdir = '',
-) {
- $base_dir = '/var/lib/git'
- $install_dir = "${base_dir}/puppetception"
- $puppet_dir = "${install_dir}${puppet_subdir}"
-
- file { [$base_dir,
- $install_dir,
- ]:
- ensure => directory,
- require => Mount['/srv'],
- owner => $owner,
- group => $group,
- }
-
- git::clone { $install_dir:
- ensure => latest,
- directory => $install_dir,
- origin => $git_url,
- require => File[$install_dir],
- branch => $git_branch,
- owner => 'root',
- group => 'root',
- }
-
- file { '/usr/sbin/puppetception':
- ensure => present,
- content => template('puppetception/puppetception.erb'),
- mode => '0700',
- owner => 'root',
- group => 'root',
- }
-
- cron { 'puppetception-run':
- ensure => present,
- command => '/usr/sbin/puppetception',
- minute => [23, 43, 03],
- }
-}
diff --git a/modules/puppetception/templates/puppetception.erb
b/modules/puppetception/templates/puppetception.erb
deleted file mode 100644
index 52e0b96..0000000
--- a/modules/puppetception/templates/puppetception.erb
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-# Helper command to run the puppet files fetched
-# by puppetception.
-PUPPET_PATH='<%= @puppet_dir %>'
-/usr/bin/puppet apply \
- --modulepath $PUPPET_PATH/modules \
- --manifestdir $PUPPET_PATH/manifests \
- --templatedir $PUPPET_PATH/templates \
- --verbose \
- --logdest console \
- --detailed-exitcodes \
- $PUPPET_PATH/manifests/site.pp
--
To view, visit https://gerrit.wikimedia.org/r/243884
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib738913fca005b65579c5c72a1dd0b0c16b15d6d
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits