This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell_script 'Install IIS' do | |
code 'Add-WindowsFeature Web-Server' | |
guard_interpreter :powershell_script | |
not_if "(Get-WindowsFeature -Name Web-Server).Installed" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: vsphere | |
driver_options: | |
host: '127.0.0.1' | |
user: '[email protected]' | |
password: 'passssssworddddd' | |
insecure: true | |
machine_options: | |
start_timeout: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "development", | |
"description": "The master development branch", | |
"cookbook_versions": { | |
"nginx": "<= 1.1.0", | |
"apt": "= 0.0.1" | |
}, | |
"json_class": "Cheff:Environment", | |
"chef_type": "environment", | |
"default_attributes": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "client", | |
"description": "Temporary role for chef-client override", | |
"chef_type": "role", | |
"json_class": "Chef::Role", | |
"default_attributes": { | |
}, | |
"override_attributes": { | |
"chef-client": { | |
"config": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inspec compliance login_automate https://MYAUTOMATE-URL.COM --user USERNAME --ent MYENTERPRISE --usertoken MYTOKEN --insecure | |
Token can be gathered from - https://YOUR_AUTOMATE_HOST/e/YOUR_AUTOMATE_ENTERPRISE/#/dashboard?token | |
Once succesful try a list | |
inspec compliance profiles | |
Positive response should be no avalible profiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Powershell/Command Line/Mac Terminal type out | |
echo $HOME | |
In that home directory create a folder called .berkshelf | |
In the .berkshelf directory create a file called config.json | |
Inside config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "audit", | |
"description": "Windows Scanning", | |
"chef_type": "role", | |
"json_class": "Chef::Role", | |
"default_attributes": { | |
}, | |
"override_attributes": { | |
"audit": { | |
"collector": "chef-server-visibility", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "example", | |
"description": "This is an example role defined as JSON", | |
"chef_type": "role", | |
"json_class": "Chef::Role", | |
"default_attributes": { | |
}, | |
"override_attributes": { | |
}, | |
"run_list": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"audit": { | |
"collector": "chef-server-visibility", | |
"insecure": false, | |
"profiles": [ | |
{ | |
"name": "my-profile", | |
"compliance": "john/my-profile" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"delivery-truck":{ | |
"publish": { | |
"chef_server": "true" | |
} | |
} |