{"id":18709501,"url":"https://github.com/joemiller/chef-openbsd","last_synced_at":"2025-04-12T10:35:37.341Z","repository":{"id":7350606,"uuid":"8674601","full_name":"joemiller/chef-openbsd","owner":"joemiller","description":"Chef LWRPs (package, service) for OpenBSD","archived":false,"fork":false,"pushed_at":"2013-03-09T19:08:00.000Z","size":120,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-11T06:58:06.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"joemiller.me","language":"Ruby","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/joemiller.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}},"created_at":"2013-03-09T19:01:58.000Z","updated_at":"2022-11-28T16:14:34.000Z","dependencies_parsed_at":"2022-09-17T00:30:40.675Z","dependency_job_id":null,"html_url":"https://github.com/joemiller/chef-openbsd","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joemiller%2Fchef-openbsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joemiller%2Fchef-openbsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joemiller%2Fchef-openbsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joemiller%2Fchef-openbsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joemiller","download_url":"https://codeload.github.com/joemiller/chef-openbsd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223512764,"owners_count":17157854,"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":"2024-11-07T12:27:46.748Z","updated_at":"2024-11-07T12:27:47.273Z","avatar_url":"https://github.com/joemiller.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"OpenBSD Chef Resources\n======================\n\nThis cookbook includes basic LWRPs for OpenBSD. Included resources are:\n\n- Package\n- Service\n\nPackage resource\n----------------\n\nThe package resource is loosely based on the FreeBSD package resource included\nwith Chef except it does not include support for compiling from ports. Use\nthis resource to install compiled packages, such as from an openbsd ftp mirror.\n\n### Setting $PKG_PATH\n\nOpenBSD's pkg_add and pkg_info tools use the $PKG_PATH variable to find\npackages. This recipe supports setting a default PKG_PATH for all packages\nor explicitly setting a PKG_PATH for individual packages.\n\nSet the `node['openbsd']['pkg_path']` variable to assign a default for all\npackages.\n\nAlternatively, the `source` attribute may be set on an individual package\nresource to specify an alternate $PKG_PATH, eg:\n\n    package \"thttpd\" do\n      source \"ftp://ftp.dom.tld/packages/i386\"\n    end\n\n\nAny PKG_PATH accepted by pkg_add and pkg_info should work fine, such as FTP,\nHTTP, local path. (Only tested with ftp)\n\n### Package install\n\nMost packages can be installed by specifying their base name, eg:\n\n    package \"git\"\n\nSome packages have multiple versions or flavors and these need to be explicitly\ndefined using the `version` attribute.\n\nThis recipe does not currently support picking a package automatically if there\nare multiple flavors available. You need to explicitly set the version and\nflavor in these cases. eg:\n\n    package \"vim\" do\n      version \"7.3.154p2-no_x11\"\n    end\n\n    package \"python\" do\n      version \"2.7.3p0\"\n    end\n\nService resource\n----------------\n\nThis resource is based on the FreeBSD Service resource included with Chef and\nis compatible with OpenBSD 5.x which uses the `rc.d` method for service script\nmanagement.\n\nEnabled services are added to the `/etc/rc.conf.local` file so that\n`/etc/rc.conf` is left untouched, simplifying openbsd upgrades.\n\nPassing parameters to the service is doing by setting the `:flags` attribute\non the `parameters` hash.\n\n### Usage\n\n    # adds to /etc/rc.conf.local:\n    # ntpd_flags=\"-s\"\n\n    service \"ntpd\" do\n      parameters({:flags =\u003e \"-s\"})\n      action [:enable, :start]\n    end\n\n    # adds to /etc/rc.conf.local:\n    # ftpproxy_flags=\"\"\n\n    service \"ftpproxy\" do\n      action [:enable, :start]\n    end\n\nAuthor\n------\n\n* [Joe Miller](https://twitter.com/miller_joe) - http://joemiller.me / https://github.com/joemiller\n\nLicense\n-------\n\n    Author:: Joe Miller (\u003cjoeym@joeym.net\u003e)\n    Copyright:: Copyright (c) 2013 Joe Miller\n    License:: Apache License, Version 2.0\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoemiller%2Fchef-openbsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoemiller%2Fchef-openbsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoemiller%2Fchef-openbsd/lists"}