Project

General

Profile

Installation instructions » History » Version 14

Greg Sutcliffe, 10/23/2012 10:33 AM

1 7 Jochen Schalanda
{{toc}}
2
3 1 Ohad Levy
h1. Installation instructions
4
5 2 Jochen Schalanda
h2. Source code
6 1 Ohad Levy
7 12 Ohad Levy
You can get the latest stable code from "GitHub":https://github.com/theforeman/smart-proxy ("via git":git://github.com/theforeman/smart-proxy.git).
8 2 Jochen Schalanda
<pre>
9 12 Ohad Levy
git clone git://github.com/theforeman/smart-proxy.git
10 2 Jochen Schalanda
</pre>
11 1 Ohad Levy
12 4 Ohad Levy
h2. RPM
13
14 13 Ohad Levy
You can get a the stable rpm "Here":http://yum.theforeman.org/
15 7 Jochen Schalanda
16
h2. Debian/Ubuntu packages
17
18
We provide packages for Smart-Proxy for the following Debian-based Linux distributions:
19
20 1 Ohad Levy
* Debian Linux 6.0 (Squeeze)
21 14 Greg Sutcliffe
* Ubuntu Linux 11.04 (Precise Pangolin)
22
23
These packages may also work on (let us know if they do :P):
24
25
* Debian Linux 5.0 (Lenny), see notes below
26 7 Jochen Schalanda
* Ubuntu Linux 10.04 (Lucid Lynx)
27 11 Jochen Schalanda
* Ubuntu Linux 10.10 (Maverick Meerkat)
28 7 Jochen Schalanda
* Ubuntu Linux 11.04 (Natty Narwhal)
29 11 Jochen Schalanda
30 1 Ohad Levy
Add one (and only one) of the following package sources to your @/etc/apt/sources.list@ or create an appropriate file in @/etc/apt/sources.list.d/@:
31
32
<pre>
33
# Stable packages
34 7 Jochen Schalanda
35 14 Greg Sutcliffe
# Debian Squeeze
36
deb http://deb.theforeman.org/ squeeze stable
37
# Ubuntu Precise
38
deb http://deb.theforeman.org/ precise stable
39 1 Ohad Levy
40
# Nightly builds. Beware: HERE BE DRAGONS
41 14 Greg Sutcliffe
42
# Debian Squeeze
43
deb http://deb.theforeman.org/ squeeze nightly
44
45
# Ubuntu Precise
46
deb http://deb.theforeman.org/ precise nightly
47 7 Jochen Schalanda
</pre>
48
49
The public key for "secure APT":http://wiki.debian.org/SecureApt can be downloaded "here":http://deb.theforeman.org/foreman.asc
50
51 8 Jochen Schalanda
You can add the key after its download with
52
<pre># Debian Linux (as root)
53
apt-key add foreman.asc
54
55
# Ubuntu Linux (as normal user)
56 7 Jochen Schalanda
sudo apt-key add foreman.asc
57
</pre>
58
59
or combine downloading and registering:
60
<pre># Debian Linux (as root)
61
wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add -
62
63
# Ubuntu Linux (as normal user)
64
wget -q http://deb.theforeman.org/foreman.asc -O- | sudo apt-key add -
65
</pre>
66
67
The key fingerprint is
68
<pre>
69
1DCB 15D1 2CA1 40EE F494  7E57 66CF 053F E775 FF07
70
Foreman Archive Signing Key <packages@theforeman.org>
71 1 Ohad Levy
</pre>
72
73
To install Smart-Proxy, run
74 7 Jochen Schalanda
75 8 Jochen Schalanda
<pre># Debian Linux (as root)
76
apt-get update
77
apt-get install foreman-proxy
78 7 Jochen Schalanda
79 8 Jochen Schalanda
# Ubuntu Linux (as normal user)
80
sudo aptitude update
81
sudo aptitude install foreman-proxy
82 7 Jochen Schalanda
</pre>
83
84
h3. Debian Linux 5.0 (Lenny)
85
86 1 Ohad Levy
Users of Debian Lenny will have to use "rake":http://packages.debian.org/lenny-backports/rake, "rack":http://packages.debian.org/lenny-backports/librack-ruby, and "Sinatra":http://packages.debian.org/lenny-backports/libsinatra-ruby from @lenny-backports@.
87 7 Jochen Schalanda
88
See http://backports.debian.org/Instructions/ for instructions on how to add @lenny-backports@ to your list of repositories and install a package from it.
89
90 11 Jochen Schalanda
Please note that you'll have to install the packages from @lenny-backports@ using @apt-get -t lenny-backports install libsinatra-ruby@.
91 2 Jochen Schalanda
92 1 Ohad Levy
93 6 Ohad Levy
h2. Configuration file
94 3 Jochen Schalanda
95 1 Ohad Levy
Usually can be found at /etc/foreman-proxy/settings.yml or on the config/settings.yml subdirectory.
96 2 Jochen Schalanda
You can use the @settings.yml.example@ file inside the @config@ directory as a template for your own [[settings.yml]].
97 1 Ohad Levy
98
If you don't plan to use one of the subsystems, please disable them in this configuration file.
99 2 Jochen Schalanda
100 1 Ohad Levy
101
h2. Start the daemon
102
103
<pre>
104
bin/smart-proxy.rb
105
</pre>
106 9 Ohad Levy
107 10 Ohad Levy
Or if you installed it via a package simply start the foreman-proxy service.