From 9d052b926b5cf67b8f8751af46ea5771d4422284 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 9 Jun 2016 17:30:41 +0200 Subject: git subrepo clone https://leap.se/git/puppet_apt puppet/modules/apt subrepo: subdir: "puppet/modules/apt" merged: "33c61e8" upstream: origin: "https://leap.se/git/puppet_apt" branch: "master" commit: "33c61e8" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "cb2995b" --- puppet/modules/apt/lib/facter/ubuntu_codename.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 puppet/modules/apt/lib/facter/ubuntu_codename.rb (limited to 'puppet/modules/apt/lib/facter/ubuntu_codename.rb') diff --git a/puppet/modules/apt/lib/facter/ubuntu_codename.rb b/puppet/modules/apt/lib/facter/ubuntu_codename.rb new file mode 100644 index 00000000..814fd942 --- /dev/null +++ b/puppet/modules/apt/lib/facter/ubuntu_codename.rb @@ -0,0 +1,8 @@ +Facter.add(:ubuntu_codename) do + confine :operatingsystem => 'Ubuntu' + setcode do + Facter.value('lsbdistcodename') + end +end + + -- cgit v1.2.3