Skip to content

Commit

Permalink
Merge branch 'release/0.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
heliocentric committed Jul 18, 2017
2 parents 4a7369f + c829025 commit bcc3ba6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Tue Jul 18 2017 Dylan Cochran <[email protected]> - 0.4.1
- Always copy over consul-acl, and update metadata

* Tue Jul 18 2017 Dylan Cochran <[email protected]> - 0.4.0
- (SIMP-3275) libkv auto-config uses the root acl

Expand Down
20 changes: 10 additions & 10 deletions manifests/consul.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
}
}
package { "unzip": }
file { "/usr/bin/consul-acl":
mode => "a+x",
source => "puppet:///modules/libkv/consul/consul-acl"
}
file { "/usr/bin/consul-create-acl":
mode => "a+x",
source => "puppet:///modules/libkv/consul/consul-create-acl"
}
if ($bootstrap == true) {
$_bootstrap_hash = { "bootstrap_expect" => 1 }
} else {
Expand All @@ -44,26 +52,18 @@
if ($facts["consul_bootstrap"] == "true") {
$_bootstrap_hash = { "bootstrap_expect" => 1 }
## Create real token
file { "/usr/bin/consul-acl":
mode => "a+x",
source => "puppet:///modules/libkv/consul/consul-acl"
} ->
file { "/usr/bin/consul-create-acl":
mode => "a+x",
source => "puppet:///modules/libkv/consul/consul-create-acl"
} ->
exec { "/usr/bin/consul-create-acl -t libkv /etc/simp/bootstrap/consul/master_token /etc/simp/bootstrap/consul/libkv_token":
creates => "/etc/simp/bootstrap/consul/libkv_token",
require => [
Service['consul'],
File["/usr/bin/consul-create-acl"],
File["/usr/bin/consul-acl"],
],
}
exec { "/usr/bin/consul-create-acl -t agent_token /etc/simp/bootstrap/consul/master_token /etc/simp/bootstrap/consul/agent_token":
creates => "/etc/simp/bootstrap/consul/agent_token",
require => [
Service['consul'],
File["/usr/bin/consul-create-acl"],
File["/usr/bin/consul-acl"],
],
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-libkv",
"version": "0.3.3",
"version": "0.4.1",
"author": "simp",
"summary": "",
"license": "Apache-2.0",
Expand Down

0 comments on commit bcc3ba6

Please sign in to comment.