From 7ce3190986cf8e5fe037a7ccd4c1076505b117f4 Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 12 Jul 2016 16:41:59 -0400 Subject: remove submodules in preparation for move to subrepos Change-Id: Ia7655153b556337f676e3d909559c4a7306bedd6 --- puppet/modules/lsb | 1 - 1 file changed, 1 deletion(-) delete mode 160000 puppet/modules/lsb (limited to 'puppet/modules/lsb') diff --git a/puppet/modules/lsb b/puppet/modules/lsb deleted file mode 160000 index 3742c1a0..00000000 --- a/puppet/modules/lsb +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3742c1a00c5602154a81834443ec5b0ca32c4ca0 -- cgit v1.2.3 From 5552d592f9332e55bcf2a5d2c6b0258b8130c26b Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 12 Jul 2016 16:45:31 -0400 Subject: git subrepo clone https://leap.se/git/puppet_lsb puppet/modules/lsb subrepo: subdir: "puppet/modules/lsb" merged: "bac64e7" upstream: origin: "https://leap.se/git/puppet_lsb" branch: "master" commit: "bac64e7" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "1e79595" Change-Id: Ia48799c5442c7b930952fdb822bd80d796eab321 --- puppet/modules/lsb/.gitrepo | 11 +++++++++++ puppet/modules/lsb/manifests/base.pp | 3 +++ puppet/modules/lsb/manifests/centos.pp | 5 +++++ puppet/modules/lsb/manifests/debian.pp | 6 ++++++ puppet/modules/lsb/manifests/init.pp | 6 ++++++ 5 files changed, 31 insertions(+) create mode 100644 puppet/modules/lsb/.gitrepo create mode 100644 puppet/modules/lsb/manifests/base.pp create mode 100644 puppet/modules/lsb/manifests/centos.pp create mode 100644 puppet/modules/lsb/manifests/debian.pp create mode 100644 puppet/modules/lsb/manifests/init.pp (limited to 'puppet/modules/lsb') diff --git a/puppet/modules/lsb/.gitrepo b/puppet/modules/lsb/.gitrepo new file mode 100644 index 00000000..640efc53 --- /dev/null +++ b/puppet/modules/lsb/.gitrepo @@ -0,0 +1,11 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://leap.se/git/puppet_lsb + branch = master + commit = bac64e7595a6d4f8d409b024a26bddb1c06188d6 + parent = 2e384e68fb867d8ba7178c4398e35653ab567538 + cmdver = 0.3.0 diff --git a/puppet/modules/lsb/manifests/base.pp b/puppet/modules/lsb/manifests/base.pp new file mode 100644 index 00000000..9dc8d5a4 --- /dev/null +++ b/puppet/modules/lsb/manifests/base.pp @@ -0,0 +1,3 @@ +class lsb::base { + package{'lsb': ensure => present } +} diff --git a/puppet/modules/lsb/manifests/centos.pp b/puppet/modules/lsb/manifests/centos.pp new file mode 100644 index 00000000..b7006187 --- /dev/null +++ b/puppet/modules/lsb/manifests/centos.pp @@ -0,0 +1,5 @@ +class lsb::centos inherits lsb::base { + Package['lsb']{ + name => 'redhat-lsb', + } +} diff --git a/puppet/modules/lsb/manifests/debian.pp b/puppet/modules/lsb/manifests/debian.pp new file mode 100644 index 00000000..c32070f3 --- /dev/null +++ b/puppet/modules/lsb/manifests/debian.pp @@ -0,0 +1,6 @@ +class lsb::debian inherits lsb::base { + Package['lsb']{ + name => 'lsb-release', + require => undef, + } +} diff --git a/puppet/modules/lsb/manifests/init.pp b/puppet/modules/lsb/manifests/init.pp new file mode 100644 index 00000000..85b34e1f --- /dev/null +++ b/puppet/modules/lsb/manifests/init.pp @@ -0,0 +1,6 @@ +class lsb { + case $::operatingsystem { + debian,ubuntu: { include lsb::debian } + centos: { include lsb::centos } + } +} -- cgit v1.2.3