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