summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-01 23:00:55 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-01 23:00:55 +0100
commit682829cb1aa40d179dca985b6eb430177781ffb0 (patch)
tree985651520e3912d13134ae798d3c16aab5fe1f3c /files
parentAdd node classifier. (diff)
downloadprofiles-682829cb1aa40d179dca985b6eb430177781ffb0.tar.gz
profiles-682829cb1aa40d179dca985b6eb430177781ffb0.tar.xz
Revert "Add node classifier."
This reverts commit d4f36c7bd68a5c8f6269e765e9819b6bb0e2eef4.
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))