From 8ca5e38121538a53d9f264ebd842ad4d0703c176 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 7 Oct 2016 15:34:42 -0400 Subject: [PATCH] readme: Update repository with information about remote execution --- DOCUMENTATION.md | 3 ++- README.md | 2 ++ etcd/etcd.go | 3 ++- examples/remote2a.yaml | 20 ++++++++++++++++++++ examples/remote2b.yaml | 20 ++++++++++++++++++++ 5 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 examples/remote2a.yaml create mode 100644 examples/remote2b.yaml diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 9da5dc0a..bea263cf 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -170,7 +170,8 @@ which need to exchange information that is only available at run time. ####Blog post -An introductory blog post about this topic will follow soon. +You can read the introductory blog post about this topic here: +[https://ttboj.wordpress.com/2016/10/07/remote-execution-in-mgmt/](https://ttboj.wordpress.com/2016/10/07/remote-execution-in-mgmt/) ###Puppet support diff --git a/README.md b/README.md index 11270d56..f6f6bf18 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ We'd love to have your patches! Please send them by email, or as a pull request. * James Shubin; video: [Recording from DebConf16](http://meetings-archive.debian.net/pub/debian-meetings/2016/debconf16/Next_Generation_Config_Mgmt.webm) ([Slides](https://annex.debconf.org//debconf-share/debconf16/slides/15-next-generation-config-mgmt.pdf)) * Felix Frank; blog: [Edging It All In (puppet and mgmt edges)](https://ffrank.github.io/features/2016/07/12/edging-it-all-in/) * Felix Frank; blog: [Translating All The Things (puppet to mgmt translation warnings)](https://ffrank.github.io/features/2016/08/19/translating-all-the-things/) +* James Shubin; video: [Recording from systemd.conf 2016](https://www.youtube.com/watch?v=jB992Zb3nH0&html5=1) +* James Shubin; blog: [Remote execution in mgmt](https://ttboj.wordpress.com/2016/10/07/remote-execution-in-mgmt/) ## diff --git a/etcd/etcd.go b/etcd/etcd.go index ba1eb913..3e31376a 100644 --- a/etcd/etcd.go +++ b/etcd/etcd.go @@ -36,7 +36,8 @@ // * The elected leader should decide who to nominate/unnominate to keep the right number of servers. // // Smoke testing: -// ./mgmt run --file examples/etcd1a.yaml --hostname h1 +// mkdir /tmp/mgmt{A..E} +// ./mgmt run --file examples/etcd1a.yaml --hostname h1 --tmp-prefix // ./mgmt run --file examples/etcd1b.yaml --hostname h2 --tmp-prefix --seeds http://127.0.0.1:2379 --client-urls http://127.0.0.1:2381 --server-urls http://127.0.0.1:2382 // ./mgmt run --file examples/etcd1c.yaml --hostname h3 --tmp-prefix --seeds http://127.0.0.1:2379 --client-urls http://127.0.0.1:2383 --server-urls http://127.0.0.1:2384 // ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:2379 put /_mgmt/idealClusterSize 3 diff --git a/examples/remote2a.yaml b/examples/remote2a.yaml new file mode 100644 index 00000000..c256a350 --- /dev/null +++ b/examples/remote2a.yaml @@ -0,0 +1,20 @@ +--- +graph: mygraph +comment: remote noop example +resources: + file: + - name: file1a + path: "/tmp/file1a" + content: | + i am file1a + state: exists + - name: "@@file2a" + path: "/tmp/file2a" + content: | + i am file2a, exported from host a + state: exists +collect: +- kind: file + pattern: "/tmp/" +edges: [] +remote: ssh://root:vagrant@192.168.121.201:22 diff --git a/examples/remote2b.yaml b/examples/remote2b.yaml new file mode 100644 index 00000000..abfb6d2b --- /dev/null +++ b/examples/remote2b.yaml @@ -0,0 +1,20 @@ +--- +graph: mygraph +comment: remote noop example +resources: + file: + - name: file1b + path: "/tmp/file1b" + content: | + i am file1b + state: exists + - name: "@@file2b" + path: "/tmp/file2b" + content: | + i am file2b, exported from host b + state: exists +collect: +- kind: file + pattern: "/tmp/" +edges: [] +remote: ssh://root:vagrant@192.168.121.202:22