Installation instructions » History » Version 17
Jamie MacIsaac, 04/05/2013 12:21 PM
Minor edit: packaged Ubuntu version was reported as 11.04 instead of 12;04
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 | 17 | Jamie MacIsaac | * Ubuntu Linux 12.04 (Precise Pangolin) |
22 | 14 | Greg Sutcliffe | |
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 | # Ubuntu Precise |
||
45 | deb http://deb.theforeman.org/ precise nightly |
||
46 | 7 | Jochen Schalanda | </pre> |
47 | |||
48 | The public key for "secure APT":http://wiki.debian.org/SecureApt can be downloaded "here":http://deb.theforeman.org/foreman.asc |
||
49 | |||
50 | 8 | Jochen Schalanda | You can add the key after its download with |
51 | <pre># Debian Linux (as root) |
||
52 | apt-key add foreman.asc |
||
53 | |||
54 | # Ubuntu Linux (as normal user) |
||
55 | 7 | Jochen Schalanda | sudo apt-key add foreman.asc |
56 | </pre> |
||
57 | |||
58 | or combine downloading and registering: |
||
59 | <pre># Debian Linux (as root) |
||
60 | wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add - |
||
61 | |||
62 | # Ubuntu Linux (as normal user) |
||
63 | wget -q http://deb.theforeman.org/foreman.asc -O- | sudo apt-key add - |
||
64 | </pre> |
||
65 | |||
66 | The key fingerprint is |
||
67 | <pre> |
||
68 | 1DCB 15D1 2CA1 40EE F494 7E57 66CF 053F E775 FF07 |
||
69 | Foreman Archive Signing Key <packages@theforeman.org> |
||
70 | 1 | Ohad Levy | </pre> |
71 | |||
72 | To install Smart-Proxy, run |
||
73 | 7 | Jochen Schalanda | |
74 | 8 | Jochen Schalanda | <pre># Debian Linux (as root) |
75 | apt-get update |
||
76 | apt-get install foreman-proxy |
||
77 | 7 | Jochen Schalanda | |
78 | 8 | Jochen Schalanda | # Ubuntu Linux (as normal user) |
79 | sudo aptitude update |
||
80 | sudo aptitude install foreman-proxy |
||
81 | 7 | Jochen Schalanda | </pre> |
82 | |||
83 | h3. Debian Linux 5.0 (Lenny) |
||
84 | |||
85 | 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@. |
86 | 7 | Jochen Schalanda | |
87 | 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. |
||
88 | |||
89 | 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@. |
90 | 2 | Jochen Schalanda | |
91 | 1 | Ohad Levy | |
92 | 6 | Ohad Levy | h2. Configuration file |
93 | 3 | Jochen Schalanda | |
94 | 1 | Ohad Levy | Usually can be found at /etc/foreman-proxy/settings.yml or on the config/settings.yml subdirectory. |
95 | 2 | Jochen Schalanda | You can use the @settings.yml.example@ file inside the @config@ directory as a template for your own [[settings.yml]]. |
96 | 1 | Ohad Levy | |
97 | If you don't plan to use one of the subsystems, please disable them in this configuration file. |
||
98 | 2 | Jochen Schalanda | |
99 | 1 | Ohad Levy | |
100 | h2. Start the daemon |
||
101 | |||
102 | <pre> |
||
103 | bin/smart-proxy.rb |
||
104 | </pre> |
||
105 | 9 | Ohad Levy | |
106 | 10 | Ohad Levy | Or if you installed it via a package simply start the foreman-proxy service. |
107 | 16 | Ruslan Tumarkin | |
108 | h2. Add the smart-proxy to the Foreman's Smart Proxy page |
||
109 | |||
110 | Go to [FOREMAN_URL]/smart_proxies and klick New Proxy |
||
111 | Then you type in the Name for your Proxy and the URL of your Proxy, with the Port you use. |
||
112 | For example: |
||
113 | <pre> |
||
114 | Name: Puppet-Proxy |
||
115 | URL: http://puppet.your-domain.com:8443 |
||
116 | </pre> |