{"id":13878303,"url":"https://github.com/gregmolnar/prepper","last_synced_at":"2026-03-01T03:32:20.876Z","repository":{"id":64878569,"uuid":"578345795","full_name":"gregmolnar/prepper","owner":"gregmolnar","description":"Prepper is a simple server provisioning tool, built on top of SSHKit. You can use it to script your server build process.","archived":false,"fork":false,"pushed_at":"2023-01-02T13:10:24.000Z","size":39,"stargazers_count":34,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-09T18:52:57.275Z","etag":null,"topics":["provisioning","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregmolnar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-14T20:54:54.000Z","updated_at":"2025-10-07T17:10:41.000Z","dependencies_parsed_at":"2023-02-01T02:45:37.769Z","dependency_job_id":null,"html_url":"https://github.com/gregmolnar/prepper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gregmolnar/prepper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2Fprepper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2Fprepper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2Fprepper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2Fprepper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregmolnar","download_url":"https://codeload.github.com/gregmolnar/prepper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2Fprepper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29959372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["provisioning","ruby"],"created_at":"2024-08-06T08:01:45.732Z","updated_at":"2026-03-01T03:32:20.853Z","avatar_url":"https://github.com/gregmolnar.png","language":"Ruby","readme":"# Prepper\n\nPrepper is a simple server provisioning tool, built on top of SSHKit. You can\nuse it to script your server build process. It is heavily inspired by (Sprinkle)[https://github.com/sprinkle-tool/sprinkle], but Sprinkle doesn't seem to be maintained anymore, that's why Prepper was born.\n\n\n## Installation\n\n    $ gem install prepper\n\n## Usage\n\nPrepper works with \"packages\". You define a package with a name and pass it a block.\nWithin that block you can execute commands on the target host.\nThere are built in helpers to install `apt` packages, manage directories and\nupload files to the server, etc.\n\nA simple example:\n\n```ruby\n\nserver_host \"YOUR_SERVER_IP\"\nserver_port 22\nserver_user \"root\"\n\n# let's install the necessary packages to run a Rails app with Postgresql\npackage :apt do\n  apt_update\n  apt_install %w(git-core build-essential libcurl4 libcurl4-openssl-dev libjemalloc-dev postgresql-client libpq-dev postgresql-contrib)\nend\n\n# now we will add a deploy user\npackage :add_deploy_user do\n  add_user 'deploy', shell: '/bin/bash', flags: '--disabled-password'\n\n  directory '/home/deploy/.ssh', owner: 'deploy:deploy'\n  file '/home/deploy/.ssh/authorized_keys', owner: 'deploy:deploy', mode: '655', content: 'ssh-rsa YOUR PUBLIC SSH KEY'\n  file '/etc/sudoers.d/deploy', owner: 'root:root', template: 'sudoers'\nend\n\n# install rbenv and Ruby 3.1.2\npackage :install_ruby do\n  install_rbenv 'deploy'\n  install_ruby 'deploy', '3.1.2', '--with-jemalloc'\nend\n\n```\n\nYou can see a full example in [examples/config.rb](examples/config.rb). You would run that file with `bundle exec prepper config.rb` to provision the server.\n\nThe API documentation can be found on rubydoc: [https://rubydoc.info/github/gregmolnar/prepper](https://rubydoc.info/github/gregmolnar/prepper).\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/gregmolnar/prepper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/gregmolnar/prepper/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Prepper project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/gregmolnar/prepper/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregmolnar%2Fprepper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregmolnar%2Fprepper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregmolnar%2Fprepper/lists"}