{"id":28479032,"url":"https://github.com/openresty/opsboy","last_synced_at":"2025-07-03T09:30:39.201Z","repository":{"id":1021788,"uuid":"3842611","full_name":"openresty/opsboy","owner":"openresty","description":"A rule-based sysadmin tool that helps setting up complex environment for blank machines","archived":false,"fork":false,"pushed_at":"2024-10-11T05:26:44.000Z","size":1657,"stargazers_count":87,"open_issues_count":2,"forks_count":12,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-06-07T18:07:53.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openresty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-03-27T10:28:57.000Z","updated_at":"2025-03-18T03:44:45.000Z","dependencies_parsed_at":"2024-08-16T08:59:09.344Z","dependency_job_id":null,"html_url":"https://github.com/openresty/opsboy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openresty/opsboy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopsboy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopsboy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopsboy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopsboy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openresty","download_url":"https://codeload.github.com/openresty/opsboy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopsboy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263300057,"owners_count":23445167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-07T18:07:55.594Z","updated_at":"2025-07-03T09:30:39.184Z","avatar_url":"https://github.com/openresty.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"Name\n====\n\nopsboy - Automating deployment\n\nTable of Contents\n=================\n\n* [Name](#name)\n* [Synopsis](#synopsis)\n* [Description](#description)\n* [Copyright \u0026 License](#copyright--license)\n\nSynopsis\n========\n\nBasic usage\n\n```\n\n# assignment in opsboy file scope.\nfoo = bar; # opsboy's assignment syntax. variables can be interpolated like in shell.\n\n# comment in opsboy file.\n#foo = bar; # opsboy use # as comment syntax.\n\n# rule and target.\n\nBasically,\n\n    foo {\n        directive1;\n        directive2;\n    }\n\nis a rule. And foo is the target. It's quite similar to Makefile's rules per se.\n\nWe use the opsboy compiler to generate standalone Perl scripts that can build a\nsystem environment incrementally through a specification of rules.\n\n./openresty-test.pl make foo\n\n# command\nAll opsboy syntactic structures and directives are listed below.\n\n# git\ngit git@github.com location;  # git clone resource to location.\n\n# file\nfile location; # check if file exist, if not create.\n\n# running\nrunning 'process matching part'; # check the existence of running processes\nthrough the specified command-line string pattern. if no processes match the\npattern, make the current rule fail immediately.\n\n# dep\ndep block1 block2 block3; # specifying dependency rule names which must be\nchecked and fulfilled before running the current rule.\n\n# cwd\n cwd location; # change working directory.\n\n# test\ntest cmd; # test if the command cmd can run successfully. If not, make the\ncurrent rule fail without executing any other commands associated with the\ncurrent rule.\n\n# env\nenv key value; # working like bash's export command;\nenv PATH '~/git/lua-nginx-module/work/nginx/sbin:$PATH'; # we can interpolate\nother environment variables inside the envirment variable values here.\n\n# always\nalways; # exec blocking without conditions.\n\n# sh\nsh 'CMD'; # exec some shell command.\n\n# yum\nyum 'PKG'; # package installation through supported package manager (brew, yum,\ndnf and pkg_add available now).\n\n# debuginfo\ndebuginfo 'kernel-`uname -r`'; # install debuginfo.\n\n# prog\nprog program; # check whether the program exists and executable in the system's PATH environment.\n\n# fetch\nfetch source; # download source from internet with timestamp-checking.\n\n# tarball\ntarball file; # tar -xvf or -jxvf file.\n\n# cpan\ncpan package; # install perl CPAN packages.\n\n```\n\nDescription\n===========\n\nThis is a rule-based script generator for system environment incremental deployment.\n\n    # on the developer host machine\n    ./opsboy samples/openresty-tester.ob -o openresty-tester.pl\n\n    # on the target machine\n    ./openresty-test.pl make t-ngx_lua tv-ngx_srcache --git-pull force=1\n\nInstallation on the Developer Host Machine\n\n    $ sudo cpan Pegex File::Copy\n\n    This is not required on the target machine though. The target\n    machine only needs to have perl 5 installed.\n\nCopyright \u0026 License\n===================\n\nThe bundle itself is licensed under the 2-clause BSD license.\n\nCopyright (c) 2012-2016, Yichun \"agentzh\" Zhang (章亦春) \u003cagentzh@gmail.com\u003e, OpenResty Inc.\n\nThis module is licensed under the terms of the BSD license.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS\nIS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\nTO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenresty%2Fopsboy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenresty%2Fopsboy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenresty%2Fopsboy/lists"}