Eevans has uploaded a new change for review.
https://gerrit.wikimedia.org/r/277865
Change subject: [WIP]: write cassandra instance yaml descriptors
......................................................................
[WIP]: write cassandra instance yaml descriptors
This is a strawman implementation of per-instance, YAML-formatted, instance
descriptors for Cassandra. The idea here is to provide a robust means for
tools to ascertain a hosts configuration.
Thoughts?
Change-Id: I33f618dbae165dc36ef4bc5b61e49713e440b0fc
---
M modules/cassandra/manifests/instance.pp
A modules/cassandra/templates/instance.yaml.erb
2 files changed, 22 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/65/277865/1
diff --git a/modules/cassandra/manifests/instance.pp
b/modules/cassandra/manifests/instance.pp
index f1e8ee4..19e7d1b 100644
--- a/modules/cassandra/manifests/instance.pp
+++ b/modules/cassandra/manifests/instance.pp
@@ -205,6 +205,22 @@
}
}
+ file { "/etc/cassandra/instances.d":
+ ensure => directory,
+ owner => 'cassandra',
+ group => 'cassandra',
+ mode => '0755',
+ require => Package['cassandra']
+ }
+
+ file { "/etc/cassandra/instances.d/${tls_hostname}.yaml":
+ content => template("${module_name}/instance.yaml.erb"),
+ owner => 'cassandra',
+ group => 'cassandra',
+ mode => '0400',
+ require => Package['cassandra'],
+ }
+
base::service_unit { $service_name:
ensure => present,
template_name => 'cassandra',
diff --git a/modules/cassandra/templates/instance.yaml.erb
b/modules/cassandra/templates/instance.yaml.erb
new file mode 100644
index 0000000..21f1b18
--- /dev/null
+++ b/modules/cassandra/templates/instance.yaml.erb
@@ -0,0 +1,6 @@
+instance:
+ name: <%= @instance_name %>
+ jmx_port: <%= @jmx_port %>
+ listen_address: <%= @listen_address %>
+ service_name: <%= @service_name %>
+ config_directory: <%= @config_directory %>
--
To view, visit https://gerrit.wikimedia.org/r/277865
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I33f618dbae165dc36ef4bc5b61e49713e440b0fc
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Eevans <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits