From 1c37501e78b66ed5273d28bd2126301a9a4db16e Mon Sep 17 00:00:00 2001 From: Brandon Orther Date: Wed, 2 May 2012 09:17:37 -0700 Subject: [PATCH] check if python-software-properties package is already defined before defining it --- manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 51b965b5..84fe2095 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -26,8 +26,10 @@ 'Ubuntu': { class { 'apt': } - package { 'python-software-properties': - ensure => present, + if !defined(Package["python-software-properties"]) { + package { 'python-software-properties': + ensure => present, + } } apt::ppa { 'ppa:chris-lea/node.js':