Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saurabh221089/webserver_cookbook
This is a chef cookbook to install webserver and test the cookbook on Vagrant box and Vsphere VM.
https://github.com/saurabh221089/webserver_cookbook
chef-cookbook kitchen-cookbook vagrant
Last synced: 2 months ago
JSON representation
This is a chef cookbook to install webserver and test the cookbook on Vagrant box and Vsphere VM.
- Host: GitHub
- URL: https://github.com/saurabh221089/webserver_cookbook
- Owner: saurabh221089
- License: other
- Created: 2024-07-30T08:18:35.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-01T12:01:48.000Z (5 months ago)
- Last Synced: 2024-10-01T06:40:41.368Z (3 months ago)
- Topics: chef-cookbook, kitchen-cookbook, vagrant
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# webserver
## Pull-based Configuration Management tool
Workstation (PE develop Cookbooks) ---upload via Knife---> Chef Infra Server ---Pull--> Nodes running Chef client**Ohai** is service installed on our nodes collecting all info regarding state of nodes. Ohai is run before every chef-client run.
$ cd chef-repo/cookbooks/
$ chef-cli generate cookbook webserver
$ knife cookbook upload webserver### Knife commands
```
knife block list
knife status
knife node list ---Return a list of nodes
Knife node show ---Info about the node, run_list, roles, recipes, Platform
knife client list
knife org list ---List all orgs (Not authorized, missing read permission)
knife vault show
knife role list
knife role show atlas-server ---To list all the roles to see the run_list of selected role
knife client delete -y test-node1
knife node delete -y test-node1
knife search node "tags:*ubuntu* OR roles:*ubuntu* OR fqdn:*ubuntu* ---List all the nodes details
knife search node 'platform:windows* AND roles:gitlab*'
```
### Knife-Vsphere commands
```
knife vsphere datastore list
knife vsphere template list
knife vsphere vm disk list webserver1
0 Hard disk 1 vm_datastore1_test 60.00 GiB
knife vsphere vm disk extend VMNAME SIZE. (Extends the disk of vm VMNAME to SIZE kilobytes.)
knife vsphere vm state gassi-qamail1
VM gassi-qamail1 is currently powered on
```