Giuseppe Lavagetto has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/339673 )

Change subject: profile::conftool::client: add default schema
......................................................................

profile::conftool::client: add default schema

This first schema is for just discovery objects tjat will be used by our
DNS discovery interface and by MediaWiki to populate
ProductionService.php in mediawiki-config.

Bug: T149617
Change-Id: Iad7d71115142727e0f748d81e39fb3e8b1d2597a
---
A modules/profile/files/conftool/schema.yaml
M modules/profile/manifests/conftool/client.pp
2 files changed, 22 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/73/339673/1

diff --git a/modules/profile/files/conftool/schema.yaml 
b/modules/profile/files/conftool/schema.yaml
new file mode 100644
index 0000000..73ee72c
--- /dev/null
+++ b/modules/profile/files/conftool/schema.yaml
@@ -0,0 +1,13 @@
+# Discovery objects. they will represent a sequence of cluster/service/dc 
combinations
+discovery:
+  path: "discovery"
+  tags:
+    - cluster
+    - service
+  schema:
+    pooled:
+      type: "bool"
+      default: false
+    url:
+      type: "string"
+      default: ""
diff --git a/modules/profile/manifests/conftool/client.pp 
b/modules/profile/manifests/conftool/client.pp
index 2a1fcb3..1e617ff 100644
--- a/modules/profile/manifests/conftool/client.pp
+++ b/modules/profile/manifests/conftool/client.pp
@@ -40,4 +40,13 @@
         tcpircbot_port => $tcpircbot_port,
         hosts          => [],
     }
+
+    # Conftool schema. Let's assume we will only have one.
+    file { '/etc/conftool/schema.yaml':
+        ensure => present,
+        source => 'puppet:///modules/profile/conftool/schema.yaml',
+        owner  => 'root',
+        group  => 'root',
+        mode   => '0444',
+    }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/339673
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iad7d71115142727e0f748d81e39fb3e8b1d2597a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to