- Install packer
git clone [email protected]:joefitzgerald/packer-windows.git
cd packer-windows
packer build windows_2012_r2.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
# | |
# Copyright:: Copyright (c) 2013-2014 Chef Software, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
[wolfe21@guri nfs]$ kitchen test centos-7 | |
-----> Starting Kitchen (v1.3.1) | |
-----> Cleaning up any prior instances of <default-centos-70> | |
-----> Destroying <default-centos-70>... | |
Finished destroying <default-centos-70> (0m0.00s). | |
-----> Testing <default-centos-70> | |
-----> Creating <default-centos-70>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Box 'opscode-centos-7.0' could not be found. Attempting to find and install... | |
default: Box Provider: virtualbox |
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
require 'chefspec' | |
module SpecHelper | |
def global_stubs | |
# Don't worry about external cookbook dependencies | |
Chef::Cookbook::Metadata.any_instance.stub(:depends) | |
# Test each recipe in isolation, regardless of includes | |
@included_recipes = [] | |
Chef::RunContext.any_instance.stub(:loaded_recipe?).and_return(false) |
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
--- | |
provisioner: | |
name: chef_zero | |
driver: |
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
[root@mail ~]# postconf -d | grep 550 | |
multi_recipient_bounce_reject_code = 550 | |
unknown_local_recipient_reject_code = 550 | |
unknown_relay_recipient_reject_code = 550 | |
unknown_virtual_alias_reject_code = 550 | |
unknown_virtual_mailbox_reject_code = 550 | |
[root@mail ~]# postconf -d | grep 450 | |
access_map_defer_code = 450 | |
defer_code = 450 |
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
I, [2014-04-22T12:20:39.494519 #30918] INFO -- default-centos-65: -----> Converging <default-centos-65>... | |
I, [2014-04-22T12:20:39.496360 #30918] INFO -- default-centos-65: Preparing files for transfer | |
I, [2014-04-22T12:20:39.501174 #30918] INFO -- default-centos-65: Resolving cookbook dependencies with Berkshelf 2.0.14... | |
I, [2014-04-22T12:20:40.864417 #30918] INFO -- default-centos-65: Removing non-cookbook files before transfer | |
I, [2014-04-22T12:20:41.301089 #30918] INFO -- default-centos-65: Transfering files to <default-centos-65> | |
I, [2014-04-22T12:20:49.504787 #30918] INFO -- default-centos-65: [2014-04-22T19:20:49+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /tmp/kitchen | |
I, [2014-04-22T12:20:49.504918 #30918] INFO -- default-centos-65: One version per cookbook | |
I, [2014-04-22T12:20:49.504962 #30918] INFO -- default-centos-65: | |
I, [2014-04-22T12:20:49.519963 #30918] INFO -- default-centos-65: [2014-04-22T19:20:49+00:00] INFO: Forking chef instance to converge.. |
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
it 'installs python package foo with pip' do | |
expect(chef_run).to install_python_pip('foo') | |
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
suites: | |
- name: default | |
run_list: | |
- recipe[foo] | |
- name: integration | |
run_list: | |
- recipe[base] | |
- recipe[foo] |
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
# chefspec task against spec/*_spec.rb | |
require 'rspec/core/rake_task' | |
RSpec::Core::RakeTask.new(:chefspec) |
NewerOlder