9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am running nmap and I wish to see basic realm name when I run a query.
For example, I wish to enter application_name for map query.
when I nmap an ip, the result I expect to get is: :
Port: 33234
HTTP/1.1 401 Unauthorized
Server: Apache/2.4.7 (Ubuntu)
Cache-Control: no-cache... (0 Replies)
Discussion started by: baris35
0 Replies
2. Solaris
Hi,
I am very new to scripting. I need to create a script which does following.
Scenario:
First get the format command output echo | format
Insert the new disk to Solaris Server
Get Zpool status
format the new disk
( Here I need to select the new disk which have been inserted, I do... (1 Reply)
Discussion started by: praveensharma21
1 Replies
3. UNIX for Advanced & Expert Users
Hi
I need some help with a task, i am an absolute newbie to any form of shell scripting and request guidance.
I have been building a proxy server using the apache mod proxy currently my solution is working , but i need to automate the process , suppose if any changes need to be made on... (0 Replies)
Discussion started by: satej
0 Replies
4. Ubuntu
Hello,
I am trying to setup a software with an API in my linux server but at some field there are some codes which are called "http authentication"
I dont know how to run them.
Could anybody give me an idea about how it's working.
How http authentication is done; from linux terminal or from... (0 Replies)
Discussion started by: baris35
0 Replies
5. Linux
Hey guys!
So I decided to set up some basic user authentication on my apache2 server, and I am running into some problems. I followed the documentation provided by apache on their website, but I cant create the password file for some reason. I did a little trouble shooting myself, and found... (40 Replies)
Discussion started by: LinuxIntern445
40 Replies
6. AIX
Good afternoon all,
I'm sorry if this is a total n00b question but if you create a mirrored disk (rootvg (approx. 30 GB) - AIX 6.1 on a P520), will there be any impact to the production system as it's syncronizing? The boss thinks there will be too much impact to do this during working hours.
... (4 Replies)
Discussion started by: Spellbound
4 Replies
7. OS X (Apple)
Hi,
I'm trying to use launchd to detect whether certain ports are opened
and if they are then to take some appropriate action, e.g. close the
port or, worst case scenario, down the whole net connection. Apparently,
force closing a port is not possible without killing the offending binary so... (3 Replies)
Discussion started by: ASGR
3 Replies
8. Programming
Hey guys,
This is quite simply what I'm trying to make:
A program that runs in a UNIX terminal that you can output text messages to from another machine. These text messages would be prepended with a customized prompt. I'd also like to have the window spew out random dumps of flavor text not... (1 Reply)
Discussion started by: AcerAspirant
1 Replies
9. Filesystems, Disks and Memory
Hi there,
I'm not sure if this is possible, but here is what I'd like to do..
I have an existing 160GB drive in my Redhat 9.0 server that I would like to add an additional 160GB drive to and create a mirrored RAID of the first disk to the new disk. I would like to do this without having to... (2 Replies)
Discussion started by: sysera
2 Replies
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)