Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Dec 15, 2016
1 parent 1400ceb commit 53bc00c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 32 deletions.
8 changes: 4 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# == Class onetimesecret
#
# Install, configure and run One-Time Secret
#
class onetimesecret (
# service options
Boolean $manage_service = $::onetimesecret::params::manage_service,
Expand All @@ -8,7 +12,6 @@
String $service_ensure = $::onetimesecret::params::service_ensure,
String $service_name = $::onetimesecret::params::service_name,
String $service_provider = $::onetimesecret::params::service_provider,

# installation options
Boolean $manage_package = $::onetimesecret::params::manage_package,
Boolean $manage_additional_packages = $::onetimesecret::params::manage_additional_packages,
Expand All @@ -19,18 +22,15 @@
String $install_dir = $::onetimesecret::params::install_dir,
String $symlink_name = $::onetimesecret::params::symlink_name,
Boolean $manage_symlink = $::onetimesecret::params::manage_symlink,

# user options
Boolean $manage_user = $::onetimesecret::params::manage_user,
String $root_group = $::onetimesecret::params::root_group,
$gid = undef,
String $group = $::onetimesecret::params::group,
$uid = undef,
String $user = $::onetimesecret::params::user,

String $bundle_exec = $::onetimesecret::params::bundle_exec,
String $redis_exec = $::onetimesecret::params::redis_exec,

# OTS configuration
String $host = $::fqdn,
String $domain = $::domain,
Expand Down
6 changes: 3 additions & 3 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
file {
[ $::onetimesecret::config_dir, $::onetimesecret::data_dir,
$::onetimesecret::log_dir, $::onetimesecret::pid_dir]:
ensure => directory,
owner => $onetimesecret::user,
group => $onetimesecret::group,
ensure => directory,
owner => $onetimesecret::user,
group => $onetimesecret::group,
}

# We won't be able to build the app without these packages.
Expand Down
42 changes: 21 additions & 21 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
$manage_user = true
$manage_symlink = true
$options = {}
$package_name = "${module_name}"
$package_name = $module_name

# service parameters
$manage_service = true
$manage_service_file = true
$service_name = "${module_name}"
$service_name = $module_name
$service_enable = true
$service_ensure = 'running'
$service_provider = 'init'
Expand Down Expand Up @@ -78,7 +78,7 @@
'site' => {
'host' => 'localhost:7143',
'domain' => $::domain,
'ssl' => 'false',
'ssl' => false,
'secret' => 'CHANGEME',
},
'redis' => {
Expand All @@ -89,18 +89,18 @@
'mode' => ':smtp',
'from' => "ots@${::domain}",
'host' => 'localhost',
'port' => '25',
'port' => 25,
},
'incoming' => {
'enabled' => 'false',
'enabled' => false,
'email' => 'example@onetimesecret.com',
'passphrase' => 'CHANGEME',
'regex' => '\A[a-zA-Z0-9]{6}\z',
},
'locales' => [ 'en', 'es', 'de', 'nl', 'ru' ],
'unsupported_locales' => [ 'fr', 'pt', 'jp', 'pt' ],
'stathat' => {
'enabled' => 'false',
'enabled' => false,
'apikey' => 'CHANGEME',
'default_chart' => 'CHANGEME',
},
Expand All @@ -109,18 +109,18 @@
'paid_recipient_text' => '\'Send the secret link via email\'',
},
'limits' => {
'create_secret' => '250',
'create_account' => '10',
'update_account' => '10',
'email_recipient' => '50',
'send_feedback' => '10',
'authenticate_session' => '5',
'homepage' => '500',
'dashboard' => '1000',
'failed_passphrase' => '5',
'show_metadata' => '1000',
'show_secret' => '1000',
'burn_secret' => '1000',
'create_secret' => 250,
'create_account' => 10,
'update_account' => 10,
'email_recipient' => 50,
'send_feedback' => 10,
'authenticate_session' => 5,
'homepage' => 500,
'dashboard' => 1000,
'failed_passphrase' => 5,
'show_metadata' => 1000,
'show_secret' => 1000,
'burn_secret' => 1000,
},
}
$redis_default_options = {
Expand All @@ -131,9 +131,9 @@
'appendfilename' => 'default.aof',
'requirepass' => 'CHANGEME',
'bind' => '127.0.0.1',
'port' => '7179',
'databases' => '16',
'timeout' => '30',
'port' => 7179,
'databases' => 16,
'timeout' => 30,
'daemonize' => 'yes',
'loglevel' => 'notice',
'save' => '157680000 1',
Expand Down
7 changes: 3 additions & 4 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,16 @@
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"12.04",
"14.04",
"16.04"
]
},
{
"operatingsystem": "FreeBSD",
"operatingsystemrelease": [
"9",
"10"
"10",
"11"
]
},
}
]
}

0 comments on commit 53bc00c

Please sign in to comment.