I hereby claim:
- I am drrk on github.
- I am drrk (https://keybase.io/drrk) on keybase.
- I have a public key ASCfVkUm2sx6vDihokODR-Vt7n1nj_vLTtFMcU86SV7g3wo
To claim this, I am signing this object:
| { | |
| "reporter": { | |
| "automate" : { | |
| "stdout" : false, | |
| "url" : "https://automate.chefdemo.cloud/data-collector/v0/", | |
| "token" : "IGLxB19nmaEhTns1Eu98-DSNb9A=", | |
| "insecure" : true, | |
| "node_name" : "win-2022-demo-node", | |
| "environment" : "prod" | |
| } |
| # InSpec waivers for Scenario 6 demo subset profile. | |
| # | |
| # Controls 18.9.28.3 and 18.9.28.4 govern domain-joined computer enumeration | |
| # behaviour. They are not applicable on standalone (non-domain-joined) servers. | |
| # Failures on these controls are expected and governed — not ignored. | |
| # | |
| # Usage: | |
| # inspec exec . --waiver-file waivers.yml -t winrm://... | |
| # Or upload alongside the profile to Automate when assigning to the cohort. |
| [chef@ip-172-31-58-233 ~]$ chef generate repo chef-repo | |
| Generating Chef Infra repo chef-repo | |
| - Ensuring correct Chef Infra repo file content | |
| [2019-07-22T09:22:01+00:00] WARN: Found a directory chef-repo in the cookbook path, but it contains no cookbook files. skipping. | |
| ================================================================================ | |
| Error executing action `create_if_missing` on resource 'template[/home/chef/chef-repo/LICENSE]' | |
| ================================================================================ | |
| NoMethodError |
| chef-run chef@node1 file '/etc/motd' | |
| content='Welcome to Chef’ --password Cod3Can! | |
| chef-run chef@node1 motd.rb --password Cod3Can! | |
| chef-run winrm://Administrator@winnode1 file_experiment.rb --password Cod3Can! | |
| chef generate cookbook -P setup | |
| chef generate template motd | |
| kitchen converge | |
| kitchen verify | |
| kitchen destroy | |
| chef generate cookbook -P mycorp_resources |
| delete_lines 'remove requiretty from sudoers' do | |
| path '/etc/sudoers' | |
| pattern '^.*requiretty' | |
| end |
| --- | |
| driver: | |
| name: azurerm | |
| driver_config: | |
| subscription_id: '4801fa9d-YOUR-GUID-HERE-b265ff49ce21' | |
| location: 'West Europe' | |
| machine_size: 'Standard_D1' | |
| transport: |
| The host 192.168.0.9 in the test above does not exist, | |
| and bowerham.net does not respond on port 5678, | |
| but is dropped by the firewall completly, | |
| not even returning a port closed response. |
| lhrkjohnson001:test_remote_file kjohnson$ kitchen converge | |
| -----> Starting Kitchen (v1.10.2) | |
| -----> Creating <default-windows2012>... | |
| Bringing machine 'default' up with 'virtualbox' provider... | |
| ==> default: Importing base box 'windows-2012r2'... | |
| ==> default: Matching MAC address for NAT networking... | |
| ==> default: Setting the name of the VM: kitchen-test_remote_file-default-windows2012_default_1473181164709_29566 | |
| ==> default: Clearing any previously set network interfaces... | |
| ==> default: Preparing network interfaces based on configuration... | |
| default: Adapter 1: nat |
I hereby claim:
To claim this, I am signing this object:
| # borrowed from https://github.com/micropython/micropython/blob/master/esp8266/scripts/ntptime.py | |
| import socket | |
| import pyb | |
| import network | |
| import utime | |
| import socket | |
| # (date(2000, 1, 1) - date(1900, 1, 1)).days * 24*60*60 | |
| NTP_DELTA = 3155673600 |