8 More Discussions You Might Find Interesting
1. Linux
i have a project in numerical calculus in c language
what unix i get better for this? (7 Replies)
Discussion started by: gitac
7 Replies
2. Cybersecurity
I'm looking to put a box at a client site which will be connected to the client's home router for internet.
That box will have remote access software on it and will have untrustworthy contractors logging in and using the browser. So, I'm looking for a distro that would be LOCKED DOWN to the max... (1 Reply)
Discussion started by: artranc3
1 Replies
3. Shell Programming and Scripting
Hi,
I have an application in 2 different directories, one is for OpenSuSE and the other for CentOS.
I wrote a script which chooses the right executable for the distribution. But it does not work.
-------------------
#!/bin/bash
if
then
( DN="/home/apps/applicationXY/Version3.1" )... (2 Replies)
Discussion started by: serverjunge
2 Replies
4. Slackware
Dear Friends,
If I use Slackware for learning whether it will make any confusion in administering/using Redhat and SuSE since I have checked slackware is more like BSD.
Thank you. (4 Replies)
Discussion started by: Tlogine
4 Replies
5. Linux
Hi all
Help me find the best distro for the following configurations:
Intel pentium IV 1.6 Ghz
128 MB RAM :(
40 GB Hardisk with one very big partition more than 35 gb n another 2 gb partition.
windows xp is already installed but has enough free space (26gb).
Which linux will be... (0 Replies)
Discussion started by: bbala
0 Replies
6. UNIX for Dummies Questions & Answers
There are soo many flavors of linux and i just cant choose/find the right linux for me...
I am hopeing for a linux that is a
Workhorse
Can fit of a seires (or 1) disk(s)
Lots of features (admin/mod features)
A learning mode or a detailed tutorial
Can work side by side with windows... (12 Replies)
Discussion started by: lithuaniaakid
12 Replies
7. UNIX for Dummies Questions & Answers
I know that the rules say no school questions but I am in advanced topics and am going to go to college for programming and I want to find a easy first OS to start me out, please help, thanks (3 Replies)
Discussion started by: KoKo
3 Replies
8. Programming
Listen, if you know a bit of programming in C and need to program unix-type operating systems the next transitive stage is for sure C++. However, have in mind that Java is like learning C but 99% object-oriented(o.o.) and with no pointers or memory-management tricks. It would be good for you to see... (5 Replies)
Discussion started by: SolidSnake
5 Replies
LEARN ABOUT DEBIAN
knife-bootstrap
KNIFE-BOOTSTRAP(1) Chef Manual KNIFE-BOOTSTRAP(1)
NAME
knife-bootstrap - Install Chef Client on a remote host
SYNOPSIS
knife bootstrap (options)
-i, --identity-file IDENTITY_FILE
The SSH identity file used for authentication
-N, --node-name NAME
The Chef node name for your new node
-P, --ssh-password PASSWORD
The ssh password
-x, --ssh-user USERNAME
The ssh username
-p, --ssh-port PORT
The ssh port
--bootstrap-version VERSION
The version of Chef to install
--bootstrap-proxy PROXY_URL
The proxy server for the node being bootstrapped
--prerelease
Install pre-release Chef gems
-r, --run-list RUN_LIST
Comma separated list of roles/recipes to apply
--template-file TEMPLATE
Full path to location of template to use
--sudo Execute the bootstrap via sudo
-d, --distro DISTRO
Bootstrap a distro using a template
--[no-]host-key-verify
Enable host key verification, which is the default behavior.
DESCRIPTION
Performs a Chef Bootstrap on the target node. The goal of the bootstrap is to get Chef installed on the target system so it can run Chef
Client with a Chef Server. The main assumption is a baseline OS installation exists. This sub-command is used internally by some cloud com-
puting plugins.
The bootstrap sub-command supports supplying a template to perform the bootstrap steps. If the distro is not specified (via -d or --distro
option), an Ubuntu 10.04 host bootstrapped with RubyGems is assumed. The DISTRO value corresponds to the base filename of the template, in
other words DISTRO.erb. A template file can be specified with the --template-file option in which case the DISTRO is not used. The sub-com-
mand looks in the following locations for the template to use:
o bootstrap directory in the installed Chef Knife library.
o bootstrap directory in the $PWD/.chef.
o bootstrap directory in the users $HOME/.chef.
The default bootstrap templates are scripts that get copied to the target node (FQDN). The following distros are supported:
o centos5-gems
o fedora13-gems
o ubuntu10.04-gems
o ubuntu10.04-apt
The gems installations will use RubyGems 1.3.6 and Chef installed as a gem. The apt installation will use the Opscode APT repository.
In addition to handling the software installation, these bootstrap templates do the following:
o Write the validation.pem per the local knife configuration.
o Write a default config file for Chef (/etc/chef/client.rb) using values from the knife.rb.
o Create a JSON attributes file containing the specified run list and run Chef.
In the case of the RubyGems, the client.rb will be written from scratch with a minimal set of values; see EXAMPLES. In the case of APT
Package installation, client.rb will have the validation_client_name appended if it is not set to chef-validator (default config value),
and the node_name will be added if chef_node_name option is specified.
When this is complete, the bootstrapped node will have:
o Latest Chef version installed from RubyGems or APT Packages from Opscode. This may be a later version than the local system.
o Be validated with the configured Chef Server.
o Have run Chef with its default run list if one is specfied.
Additional custom bootstrap templates can be created and stored in .chef/bootstrap/DISTRO.erb, replacing DISTRO with the value passed with
the -d or --distro option. See EXAMPLES for more information.
EXAMPLES
Setting up a custom bootstrap is fairly straightforward. Create a .chef/bootstrap directory in your Chef Repository or in $HOME/.chef/boot-
strap. Then create the ERB template file.
mkdir ~/.chef/bootstrap
vi ~/.chef/bootstrap/debian5.0-apt.erb
For example, to create a new bootstrap template that should be used when setting up a new Debian node. Edit the template to run the com-
mands, set up the validation certificate and the client configuration file, and finally to run chef-client on completion. The bootstrap
template can be called with:
knife bootstrap mynode.example.com --template-file ~/.chef/bootstrap/debian5.0-apt.erb
Or,
knife bootstrap mynode.example.com --distro debian5.0-apt
The --distro parameter will automatically look in the ~/.chef/bootstrap directory for a file named debian5.0-apt.erb.
Templates provided by the Chef installation are located in BASEDIR/lib/chef/knife/bootstrap/*.erb, where BASEDIR is the location where the
package or Gem installed the Chef client libraries.
BUGS
knife bootstrap is not capable of bootstrapping multiple hosts in parallel.
The bootstrap script is passed as an argument to sh(1) on the remote system, so sensitive information contained in the script will be visi-
ble to other users via the process list using tools such as ps(1).
SEE ALSO
knife-ssh(1)
AUTHOR
Chef was written by Adam Jacob adam@opscode.com with many contributions from the community.
DOCUMENTATION
This manual page was written by Joshua Timberman joshua@opscode.com. Permission is granted to copy, distribute and / or modify this docu-
ment under the terms of the Apache 2.0 License.
CHEF
Knife is distributed with Chef. http://wiki.opscode.com/display/chef/Home
Chef 10.12.0 June 2012 KNIFE-BOOTSTRAP(1)