From e16565f560e3c06ed87352ccaa33be7b90adb987 Mon Sep 17 00:00:00 2001 From: Daniel Farrell Date: Fri, 27 Feb 2015 18:09:39 -0500 Subject: [PATCH] Create odl group during tarball installs * Relevant to #51 Signed-off-by: Daniel Farrell --- manifests/install.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index 95e54d4..17876b3 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -45,7 +45,15 @@ membership => 'minimum', groups => 'odl', # The odl user's home dir should exist before it's created - require => Archive['opendaylight-0.2.2'], + # The odl group, to which the odl user will below, should exist + require => [Archive['opendaylight-0.2.2'], Group['odl']], + } + + # Create and configure the `odl` group + group { 'odl': + ensure => present, + # The `odl` user will be a member of this group, create it first + before => User['odl'], } # Download and extract the ODL tarball