summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/node-classifier.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/files/node-classifier.py b/files/node-classifier.py
deleted file mode 100644
index 3edefd4..0000000
--- a/files/node-classifier.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env pythton
-
-import yaml
-import sys
-
-# https://puppet.com/docs/puppet/7/nodes_external.html
-
-data = {
- 'yoursql.adrift.space': {
- # must contain at least either classes or parameters
- 'classes': [
- 'profiles::common',
- ],
- 'environment': 'mysql',
- },
-}
-
-def main(args):
- if len(args) == 1:
- print('usage ./node-classifier <node-name>')
- return
-
- nodename = sys.argv[1]
- instance = data.get(nodename)
- if not instance: return 1
- print(yaml.dump(instance))
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))