Skip to content

Commit

Permalink
Revert "Ensure 'etc' directory exists"
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav authored Nov 7, 2018
1 parent 9ecfb1e commit 79a5aaa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,20 @@
if $version !~ /\d.*/ or versioncmp($version, '3.1.0') >= 0 {
# Per the Sonatype documentation the custom nexus properties file is
# {karaf.data}/etc/nexus.properties where {karaf.data} is the work dir
$conf_dir = "${nexus_work_dir}/etc"
$conf_path = 'etc/nexus.properties'
$nexus_properties_file = "${nexus_work_dir}/${conf_path}"
}
elsif versioncmp($version, '3.0.0') >= 0 {
$conf_dir = "${nexus_root}/${nexus_home_dir}/etc"
$conf_path = 'etc/org.sonatype.nexus.cfg'
$nexus_properties_file = "${nexus_root}/${nexus_home_dir}/${conf_path}"
} else {
$conf_dir = "${nexus_root}/${nexus_home_dir}/etc"
$conf_path = 'conf/nexus.properties'
$nexus_properties_file = "${nexus_root}/${nexus_home_dir}/${conf_path}"
}
$nexus_data_dir = "${nexus_root}/${nexus_home_dir}/data"

# Nexus >=3.x do no necesarily have a properties file in place to
# modify. Make sure that there is at least a minmal file there
file { $conf_dir:
ensure => directory,
}

file { $nexus_properties_file:
ensure => present,
}
Expand Down

0 comments on commit 79a5aaa

Please sign in to comment.