Comments (2)
Thanks for filing the issue @hnelson - the issue is that Test Kitchen master has the correct fixes in it, but we are still in the process of releasing Chef Workstation to include that change. In the meantime please pin to Chef 14 until we get the releases finished
from chef-workstation.
@hnelson I have verified that this issue has been fixed, please let us know if you have any further issues, thank you for your feedback.
Here is a full test from a brand new install, cookbook, kitchen converge:
➜ chef generate cookbook foo
Ignoring ffi-1.9.25 because its extensions are not built. Try: gem pristine ffi --version 1.9.25
Generating cookbook foo
- Ensuring correct cookbook content
- Committing cookbook files to git
Your cookbook is ready. Type `cd foo` to enter it.
There are several commands you can run to get started locally developing and testing your cookbook.
Type `delivery local --help` to see a full list of local testing commands.
Why not start by writing an InSpec test? Tests for the default recipe are stored at:
test/integration/default/default_test.rb
If you'd prefer to dive right in, the default recipe can be found at:
recipes/default.rb
➜ cd foo
➜ foo git:(master) kitchen converge default-centos-7
Ignoring ffi-1.9.25 because its extensions are not built. Try: gem pristine ffi --version 1.9.25
-----> Starting Kitchen (v2.3.2)
-----> Creating <default-centos-7>...
==> vagrant: A new version of Vagrant is available: 2.2.5 (installed version: 2.1.5)!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/centos-7' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'bento/centos-7'
default: URL: https://vagrantcloud.com/bento/centos-7
==> default: Adding box 'bento/centos-7' (v201907.24.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/bento/boxes/centos-7/versions/201907.24.0/providers/virtualbox.box
==> default: Successfully added box 'bento/centos-7' (v201907.24.0) for 'virtualbox'!
==> default: Importing base box 'bento/centos-7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/centos-7' is up to date...
==> default: Setting the name of the VM: kitchen-foo-default-centos-7-1662301a-01de-48c5-b8ff-3d2d5e92b4ce
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 6.0.10
default: VirtualBox Version: 5.2
==> default: Setting hostname...
==> default: Mounting shared folders...
default: /tmp/omnibus/cache => /Users/afiune/.kitchen/cache
==> default: Machine not provisioned because `--no-provision` is specified.
[SSH] Established
Vagrant instance <default-centos-7> created.
Finished creating <default-centos-7> (1m12.42s).
-----> Converging <default-centos-7>...
Preparing files for transfer
Policy lock file doesn't exist, running `chef install` for Policyfile /Users/afiune/chef/workspace/foo/Policyfile.rb...
Ignoring ffi-1.9.25 because its extensions are not built. Try: gem pristine ffi --version 1.9.25
Building policy foo
Expanded run list: recipe[foo::default]
Caching Cookbooks...
Installing foo >= 0.0.0 from path
Lockfile written to /Users/afiune/chef/workspace/foo/Policyfile.lock.json
Policy revision id: aca7965e2c65a8a2f9615c2bb347683326f3ff56de4af7048b6520c1cb44f05c
Preparing dna.json
Exporting cookbook dependencies from Policyfile /var/folders/wl/2vw3s05d3z5d7pj7dgkzr0fc0000gn/T/default-centos-7-sandbox-20190910-20271-9j436m...
Ignoring ffi-1.9.25 because its extensions are not built. Try: gem pristine ffi --version 1.9.25
Exported policy 'foo' to /var/folders/wl/2vw3s05d3z5d7pj7dgkzr0fc0000gn/T/default-centos-7-sandbox-20190910-20271-9j436m
To converge this system with the exported policy, run:
cd /var/folders/wl/2vw3s05d3z5d7pj7dgkzr0fc0000gn/T/default-centos-7-sandbox-20190910-20271-9j436m
chef-client -z
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Installing Chef install only if missing package
Downloading https://omnitruck.chef.io/install.sh to file /tmp/install.sh
Trying wget...
Download complete.
el 7 x86_64
Getting information for chef stable for el...
downloading https://omnitruck.chef.io/stable/chef/metadata?v=&p=el&pv=7&m=x86_64
to file /tmp/install.sh.3293/metadata.txt
trying wget...
sha1 ce8e362fcc5d98302bd977919b23eb30acd5f3cb
sha256 56e3267ee1c2f0aab2a85ac49ae24a328a235889ce037c8ad6ade996d38bc849
url https://packages.chef.io/files/stable/chef/15.2.20/el/7/chef-15.2.20-1.el7.x86_64.rpm
version 15.2.20
downloaded metadata file looks valid...
downloading https://packages.chef.io/files/stable/chef/15.2.20/el/7/chef-15.2.20-1.el7.x86_64.rpm
to file /tmp/omnibus/cache/chef-15.2.20-1.el7.x86_64.rpm
trying wget...
Comparing checksum with sha256sum...
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
You are installing an omnibus package without a version pin. If you are installing
on production servers via an automated process this is DANGEROUS and you will
be upgraded without warning on new releases, even to new major releases.
Letting the version float is only appropriate in desktop, test, development or
CI/CD environments.
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Installing chef
installing with rpm...
warning: /tmp/omnibus/cache/chef-15.2.20-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:chef-15.2.20-1.el7 ################################# [100%]
Thank you for installing Chef Infra Client! For help getting started visit https://learn.chef.io
Transferring files to <default-centos-7>
+---------------------------------------------+
✔ 2 product licenses accepted.
+---------------------------------------------+
Starting Chef Infra Client, version 15.2.20
Creating a new client identity for default-centos-7 using the validator key.
Using policy 'foo' at revision 'aca7965e2c65a8a2f9615c2bb347683326f3ff56de4af7048b6520c1cb44f05c'
resolving cookbooks for run list: ["foo::[email protected] (8f495e7)"]
Synchronizing Cookbooks:
- foo (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 0 resources
Running handlers:
Running handlers complete
Chef Infra Client finished, 0/0 resources updated in 01 seconds
Downloading files from <default-centos-7>
Finished converging <default-centos-7> (0m18.60s).
-----> Kitchen is finished. (1m33.86s)
➜ foo git:(master) kitchen destroy
from chef-workstation.
Related Issues (20)
- Update docker images to ubuntu-22.04
- Kitchen escaping spaces in path names and then using them as literal (Windows)
- Windows Path needs Updated - `chef undelete --last` on Windows returns with "No undo records exist" but they do.
- Please add Ubuntu 22.04 support
- macOS Ventura Compatibility HOT 5
- chef-workstation v22.10.1013 contians deprecation warnings for ::CompositeIO and ::Parts HOT 1
- Unable to install latest knife gem using Ruby bundled with chef workstation
- User without a "default" key cannot create vaults HOT 1
- ChefWorkstation Support for MacOS Ventura with M1 chips HOT 5
- Broken 22.12.1024 on MacOS HOT 2
- Resources not working when using chef-run on windows? 22.12.1024 HOT 1
- Chef WS 22.12.1024 missing tar when SHARE to private supermarket
- Chef Workstation v23.2.1028 unable to accept license HOT 4
- Workstation 23.2.1028 - knife ssl - uninitialized class variable HOT 7
- Workstation 23.2.1028 - /bin/kitchen: warning: Exception in finalizer HOT 4
- [macOS] Original build machine build dependencies leaking into embedded ruby prevent chef_gem from completing
- eval $(chef shell init zsh) produces unsightly warnings HOT 3
- Kitchen AWS EC2 Driver Version Bump to 3.7
- Kitchen Google driver version bump to 2.4.0
- Unable to install chef-workstation package on EL8 with FIPS enabled
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 chef-workstation.