From 2f8d8f69e10858fb3c1ac99ba7eda38ec13e7774 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 5 Mar 2017 18:34:35 +0000 Subject: Added cfengine_stdlib submodule --- .gitmodules | 3 +++ README | 16 ++++++++++++++++ lib | 1 + promises.cf | 12 ++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 .gitmodules create mode 100644 README create mode 160000 lib diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1e41644 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib"] + path = lib + url = gitolite3@10.1.0.254:cfengine_stdlib diff --git a/README b/README new file mode 100644 index 0000000..1e1138e --- /dev/null +++ b/README @@ -0,0 +1,16 @@ +cfengine stdlib +=============== + +The cfengine stdlib repo on legend is a repo initialized from the master branch of the official github masterfiles. To update, run: + +git clone https://github.com/cfengine/masterfiles/ cfengine_stdlib +cd cfengine_masterfiles/ +git filter-branch --subdirectory-filter lib -- --all +git remote remove origin +git remote add legend gitolite3@10.1.0.254:cfengine_stdlib +git remote update +git push legend master + +Then in your masterfiles repo: + +git submodule update --init --recursive diff --git a/lib b/lib new file mode 160000 index 0000000..979626a --- /dev/null +++ b/lib @@ -0,0 +1 @@ +Subproject commit 979626a86c85ed840691f6d2871a4a67184b5dd3 diff --git a/promises.cf b/promises.cf index 24a989c..89d0369 100644 --- a/promises.cf +++ b/promises.cf @@ -3,11 +3,13 @@ body common control any:: bundlesequence => { cfengine_controls, + cfengine_stdlib, classify, hello, }; inputs => { @(cfengine_controls.inputs), + @(cfengine_stdlib.inputs), "services/main.cf", }; } @@ -27,3 +29,13 @@ bundle common cfengine_controls "DEBUG $(this.bundle)"; "$(const.t)defining inputs='$(inputs)'"; } + +bundle common cfengine_stdlib +{ + vars: + any:: + "inputs" slist => { "$(sys.local_libdir)/stdlib.cf" }; + reports: + DEBUG|DEBUG_cfengine_stdlib:: + "$(const.t): defining inputs='$(inputs)'"; +} -- cgit v1.2.3