wiki:ChefUpload

Version 1 (modified by lttoth@…, 8 years ago) (diff)

--

Sample Chef Upload of Changes Made to a Project Managed by Chef

Sample Upload to Chef to Manage a Product Upgrade

The following steps were taken to download and then install a new version of XpressConnect? Wizard onto the https://connect.alaska.edu server. While this Cloudpath product is not likely to be the choice going forward for wireless entrollment, the steps involved are no different than they would be for any Chef managed service.

$ find . -name cookbooks
$ mv people-chef/ cookbooks
$ mdfind cookbooks
$ cd cookbooks/
$ ls
$ git clone git@…:OIT-IAM/iam-app-xpc.git
* Resulting output

remote: Counting objects: 173, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 173 (delta 10), reused 0 (delta 0), pack-reused 140
Receiving objects: 100% (173/173), 33.73 KiB | 0 bytes/s, done.
Resolving deltas: 100% (54/54), done.
Checking connectivity... done.

$ ls
$ cd iam-app-xpc/
$ ls
$ cd attributes/
$ ls
$ vi default.rb
$ git diff
$ cd ../
$ ls
$ vi metadata.rb
$ vi CHANGELOG.md
$ kitchen test
$ git co -b xpcupdate
$ git checkout -b xpcupdate
$ git status
$ git add .
$ git status
$ git commit -m "apply latest XpressConnect? update"
$ git push -u origin xpcupdate
$ ls
$ ls .git
$ git checkout master
$ git pull
$ du .git
$ git branch
$ ls
$ berks install
$ berks upload
$ berks upload