Comments (5)
Granted, it's not explicitly shown in the docs but there's not much to running g-d. After putting in the config file, run it with -v and/or look for messages in /var/log/messages. If it has problems checking out your repo, if there's a cookbook dependency problem (e.g. metadata requires a cookbook but it's not in the repo), or it can't connect to your chef server, it's pretty verbose about any errors. Then throw it in cron/systemd timer to run frequently forever.
[root@basic07 ~]# /opt/chef/embedded/bin/grocery-delivery
WARN: Attempting to acquire lock
WARN: Lock acquired
WARN: Updating repo
WARN: Determing changes... from 2108 to 2109
WARN: Added cookbooks: ["wn_homenet"]
WARN: Deleted cookbooks: []
WARN: Added roles: []
WARN: Deleted roles: []
WARN: Added databags: []
WARN: Deleted databags: []
WARN: Success at 2109
[root@basic07 ~]#
[root@basic07 ~]# /opt/chef/embedded/bin/grocery-delivery -v
WARN: Attempting to acquire lock
WARN: Lock acquired
WARN: Updating repo
INFO: Running "svn cleanup /var/chef/grocery_delivery_work/chef"
INFO: Running "svn revert -R /var/chef/grocery_delivery_work/chef"
INFO: Running "svn update /var/chef/grocery_delivery_work/chef"
INFO: Running "svn info /var/chef/grocery_delivery_work/chef"
WARN: Repo has not changed, nothing to do...
WARN: Success at 2109
Whichever user is running g-d, will also need a knife config to upload stuff to the chef user. If you're doing this as root, then root will need a ~/.chef/knife.rb config. You can go one step further and create a write-only validation key just for grocery-delivery uploads:
[root@basic07 .chef]# cat /root/.chef/knife.rb
# Knife configuration for Grocery Delivery to upload to a Chef Server.
#
# This file is managed by Chef. Do not make any changes to this file or
# they will be overwritten.
log_level :info
log_location STDOUT
node_name 'wn_gd_uploader'
client_key '/root/.chef/wn_gd_uploader-priv.pem'
validation_client_name 'wannnet-validator'
validation_key '/etc/chef-server/wannnet-validation.pem'
cookbook_path '/var/chef/grocery_delivery_work/chef/cookbooks/'
# Beware of using something other than localhost, or you could unintentionally
# hork a different server than expected someday.
chef_server_url 'https://localhost:443'
ssl_verify_mode :verify_none
from grocery-delivery.
Thanks!
That part is easy to pick up, the trouble I ran into is figuring out how to land /opt/chef/embedded/bin/grocery-delivery
on disk. I tried /opt/opscode/embedded/bin/gem install grocery_delivery
from https://clburlison.com/chef-grocery-delivery-setup/ but due to my chef-workstation setup gd won't run. I didn't know about the chefdk dependency.
from grocery-delivery.
For anyone following along, install is broken right now due to an upstream bug and a workaround exists: Originally posted by @jaymzh in #48 (comment)
Install instructions to come soon.
from grocery-delivery.
@vladionescu are you still interested in contributing install instructions?
from grocery-delivery.
from grocery-delivery.
Related Issues (15)
- Berkshelf leaves modified files after run causing git merge issues HOT 7
- Repo types HOT 2
- GD breaks on symlinks and files with spaces HOT 1
- support git submodules HOT 2
- Question: Error when using GD to upload with Berkshelf HOT 6
- Changes not reflected in chef-manage/knife cookbook list HOT 6
- Roles upload error HOT 3
- GD returns false positive exit status HOT 1
- Timestamp option (--t or -T) does not work HOT 1
- Unable to sync json role definitions HOT 1
- Incompatible OpenSSL library prevents GD from running on F28 HOT 14
- Undefined method 'level' for GroceryDelivery::Log::Module HOT 3
- grocery fails to delete cookbooks when you have multiple versions HOT 2
- Install Instructions for Chef Automate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grocery-delivery.