Skip to content

Commit

Permalink
changes for configuring custom parcel directory
Browse files Browse the repository at this point in the history
  • Loading branch information
syam committed Nov 25, 2014
1 parent 74abd2f commit ea68e3c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,11 @@ Default: absent
The password for the YUM proxy.
Default: absent

###`parcel_dir`

The directory where parcels are downloaded and distributed.
Default: /opt/cloudera/parcels

##Limitations

###OS Support:
Expand Down
7 changes: 6 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@
# The password for the YUM proxy.
# Default: absent
#
# [*parcel_dir*]
# The directory where parcels are downloaded and distributed.
# Default: /opt/cloudera/parcels

# === Actions:
#
# Installs YUM repository configuration files.
Expand Down Expand Up @@ -299,7 +303,8 @@
$server_keypw = $cloudera::params::server_keypw,
$proxy = $cloudera::params::proxy,
$proxy_username = $cloudera::params::proxy_username,
$proxy_password = $cloudera::params::proxy_password
$proxy_password = $cloudera::params::proxy_password,
$parcel_dir = $cloudera::params::parcel_dir
) inherits cloudera::params {
# Validate our booleans
validate_bool($autoupgrade)
Expand Down
6 changes: 6 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,10 @@
undef => "${tls_dir}/private/${::fqdn}-cloudera_manager.key",
default => $::cloudera_server_key_file,
}

$parcel_dir = $::parcel_dir ? {
undef => '/opt/cloudera/parcels',
default => $::parcel_dir,
}

}
2 changes: 1 addition & 1 deletion templates/scm-config.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ listening_hostname=<%= scope.lookupvar('::fqdn') %>
# Parcel directory
# Unpacked parcels will be stored in this directory
# Downloaded parcels will be stored in <parcel_dir>/../parcel-cache
# parcel_dir=/opt/cloudera/parcels
parcel_dir=<%= @parcel_dir %>

# Heartbeat optimizations.
# enable_eager_heartbeats=true
Expand Down

0 comments on commit ea68e3c

Please sign in to comment.