| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
|
|
|
|
|
|
|
| |
It actually broke third party distros, template name is internal
to chef and shouldn't change based on distro.
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
|
|
|
|
|
|
|
| |
Refactor and direct output to a file with some magic to make up a good
output filename.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Very basic interface, reads in a YAML recipe, ruby recipe goes to stdout.
```
---
resources:
- type: "bash"
name: "new chef user"
code: "
touch /tmp/jmc/something ;
echo something >> /tmp/jmc/something ;
rm -f /tmp/jmc/bash ;
"
something:
- other: "dont use this"
```
gets converted to:
```
bash "new chef user" do
code " touch /tmp/jmc/something ; echo something >> /tmp/jmc/something ; rm -f /tmp/jmc/bash ; "
end
```
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|
|
|
|
|
| |
It's should be there, but we might as well
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Right now we have a specific case for EC2. This extends the same logic
to all clouds by using the node['cloud'] data. This really only changes
things if you run knife status with the --long flag.
The output doesn't change for EC2 nodes:
bundle exec knife status --long
36666 hours ago, smith-0, smith-0, 172.16.1.13, ubuntu 14.04.
7411 hours ago, myhost, ec2-13-59-123-123.us-east-2.compute.amazonaws.com, 13.59.123.123, ubuntu 18.04.
7298 hours ago, tim_test, ec2-34-123-123-2.us-west-2.compute.amazonaws.com, 34.221.123.123, ubuntu 16.04.
7298 hours ago, tim_test2, ec2-52-88-123-123.us-west-2.compute.amazonaws.com, 52.88.123.123, redhat 7.6.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
When we migrated to hugo the URLs changed a bit. Nothing ends in .html and we moved all the resources into their own dir.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
|
| |
Contributes to the removal of the 'heavy' highline dependency (#9359) by
switching from highline.color to pastel.decorate, which is a drop-in
replacement. Pastel is part of the tty[1] family of libraries.
[1] https://github.com/piotrmurach/tty#3-components
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|\
| |
| | |
When bootstrapping don't send an empty run_list if we are using policyfiles instead
|
| |
| |
| |
| | |
Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
|
|\ \
| | |
| | | |
Add distro constants to the bootstrap templates to support non-Chef distros
|
| | |
| | |
| | |
| | | |
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
The new Rubocop detects more unnecessary returns. This fixes these ahead of time so we can roll out the new Rubocop engine without breaking builds later.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |/
|/|
| |
| | |
Signed-off-by: Kapil chouhan <kapil.chouhan@msystechnologies.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
WARNING: Could not find any cookbooks in your cookbook path: '/Users/tsmith/dev/work/chef'. Use --cookbook-path to specify the desired path.
instead of:
WARNING: Could not find any cookbooks in your cookbook path: .. Use --cookbook-path to specify the desired path.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
|
| |
This gets us a small speedup on my mac, and probably a larger speedup on
Windows where the loading hurts more.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Ship these knife commands so we can kill off knife-acl, but move them under their own namespaces.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
This way we get the public IP / hostname on Azure, GCE, DigitalOcean, Softlayer, etc.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Remove the deprecated knife cookbook site commands
|
| |
| |
| |
| |
| |
| | |
These have been replaced with knife supermarket commands
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
|
|
| |
warning for it. Updated code to raise error if cookbook repo has cookbook directory without cookbook files, this is to make sure user should fix their cookbook repo and remove any garbage from cookbook repository and then do bulk upload.
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
|
|
|
|
|
| |
blank cookbooks. Fixes #9010
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
|\
| |
| |
| |
| | |
MsysTechnologiesllc/vasundhara/generate_metadata_json_while_cookbook_upload
Generate metadata.json from metadata.rb if not exist before knife cookbook upload or knife upload or berkshelf upload
|
| |
| |
| |
| |
| |
| | |
validate name field
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
| |
| |
| |
| |
| |
| | |
directory and copies all cookbooks into it and then generate metadata.json if it does not exist and load it to upload on Chef server
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
| |
| |
| |
| |
| |
| | |
deletes the local copy of it from chef repo
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Windows Path on Bootstrap
As a windows user when I bootstrap a node I expect the path to not have items removed as my cookbooks may depend on executables not stored on common system paths, such as sqlcmd which will break and cause the initial chef run to fail
Signed-off-by: Jason Field <jason@avon-lea.co.uk>
* Update windows_bootstrap_context.rb
Updated path as per feedback
* PATH on windows
Fixes for bad copy paste
Signed-off-by: Jason Field <jason.field@calastone.com>
|
|\ \
| | |
| | | |
Use /etc/chef for bootstrapping instead of CONF_DIR
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
CONF_DIR is resolved based on the host system running chef-client/knife. When we
use it in bootstrap template/context, we need a value based on the
target system that is being bootstrapped so that the paths are correct
(so that we don't try to create C:\chef on a linux system).
Fixes #9224
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|/ /
| |
| |
| |
| |
| | |
A user on discourse is seeing errors related to this old class. I'm not able to reproduce that failure, but we shouldn't be calling the deprecated class here. Changing this avoids a bogus deprecation warning that tells the user to stop using the legacy command, when they're actually using the new command.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
|
| |
| |
| |
| | |
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
resolv indent
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
|
|
|
|
| |
This reverts commit c29b8da2b0353bb5d6e499b5d7cc79c0fadab9b3.
|
|
|
|
|
|
|
| |
- Add required specs.
- Raise an error if no argument provided.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
|
|
| |
This update found a few things that should have been triggering before.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
- Now showing relevant logs for config.d configuration files.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|\
| |
| | |
Fix Exception: NoMethodError: undefined method join for nil:NilClass
|
| |
| |
| |
| | |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|/
|
|
| |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|\
| |
| |
| |
| | |
MsysTechnologiesllc/VSingh/remove-secret-short-option
[knife] Deprecate data bag secret (-s) short option due to conflict with --server-url option
|