Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177562850
D2568.1794736354.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None
D2568.1794736354.diff
View Options
Index: sysutils/rubygem-smart_proxy_salt/Makefile
===================================================================
--- sysutils/rubygem-smart_proxy_salt/Makefile
+++ sysutils/rubygem-smart_proxy_salt/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= smart_proxy_salt
-PORTVERSION= 1.0.0
+PORTVERSION= 2.1.2
CATEGORIES= sysutils ruby
MASTER_SITES= RG
@@ -11,7 +11,7 @@
LICENSE= GPLv3
-RUN_DEPENDS= foreman-proxy>=1.6.0:${PORTSDIR}/net/foreman-proxy \
+RUN_DEPENDS= foreman-proxy>=1.8.0:${PORTSDIR}/net/foreman-proxy \
${PYTHON_PKGNAMEPREFIX}salt>0:${PORTSDIR}/sysutils/py-salt
USES= python
@@ -19,8 +19,6 @@
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} \
-e "s|/usr/bin/env ruby|${RUBY}|g" \
@@ -32,12 +30,16 @@
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/foreman-proxy
${MKDIR} ${STAGEDIR}${PREFIX}/etc/foreman-proxy/settings.d
- ${INSTALL_DATA} ${FILESDIR}/salt.yml.sample ${STAGEDIR}${PREFIX}/etc/foreman-proxy/settings.d/salt.yml.sample
+ ${INSTALL_DATA} ${WRKSRC}/settings.d/salt.yml.example \
+ ${STAGEDIR}${PREFIX}/etc/foreman-proxy/settings.d/salt.yml.sample
${MKDIR} ${STAGEDIR}${PREFIX}/share/foreman-proxy
${MKDIR} ${STAGEDIR}${PREFIX}/share/foreman-proxy/bundler.d
- ${INSTALL_DATA} ${FILESDIR}/salt.rb ${STAGEDIR}${PREFIX}/share/foreman-proxy/bundler.d/salt.rb
+ ${INSTALL_DATA} ${FILESDIR}/salt.rb \
+ ${STAGEDIR}${PREFIX}/share/foreman-proxy/bundler.d/salt.rb
${MKDIR} ${STAGEDIR}${PREFIX}/etc/salt
- ${INSTALL_DATA} ${FILESDIR}/foreman.yaml.sample ${STAGEDIR}${PREFIX}/etc/salt/foreman.yaml.sample
- ${INSTALL_SCRIPT} ${WRKSRC}/sbin/upload-salt-reports ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/etc/foreman.yaml.example \
+ ${STAGEDIR}${PREFIX}/etc/salt/foreman.yaml.sample
+ ${INSTALL_SCRIPT} ${WRKSRC}/sbin/upload-salt-reports \
+ ${STAGEDIR}${PREFIX}/sbin
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: sysutils/rubygem-smart_proxy_salt/distinfo
===================================================================
--- sysutils/rubygem-smart_proxy_salt/distinfo
+++ sysutils/rubygem-smart_proxy_salt/distinfo
@@ -1,2 +1,2 @@
-SHA256 (rubygem/smart_proxy_salt-1.0.0.gem) = a0a84ef93c6608701b8fd53d56c7e9e3a1793f13a0e65fc8ee4fada8be07ab3f
-SIZE (rubygem/smart_proxy_salt-1.0.0.gem) = 22016
+SHA256 (rubygem/smart_proxy_salt-2.1.2.gem) = 6d7d74233e25e7c762b44cc3fc7241373a0c4d46aad4431c3ebe4aba9041550d
+SIZE (rubygem/smart_proxy_salt-2.1.2.gem) = 23040
Index: sysutils/rubygem-smart_proxy_salt/files/foreman.yaml.sample
===================================================================
--- sysutils/rubygem-smart_proxy_salt/files/foreman.yaml.sample
+++ /dev/null
@@ -1,10 +0,0 @@
----
-:proto: http
-:host: foreman.example.com
-:port: 3000
-:ssl_ca: ""
-:ssl_cert: ""
-:ssl_key: ""
-:timeout: 10
-:salt: /usr/local/bin/salt
-:upload_grains: true
Index: sysutils/rubygem-smart_proxy_salt/files/patch-bin-foreman-node
===================================================================
--- sysutils/rubygem-smart_proxy_salt/files/patch-bin-foreman-node
+++ sysutils/rubygem-smart_proxy_salt/files/patch-bin-foreman-node
@@ -1,11 +1,11 @@
---- bin/foreman-node.orig 2014-09-27 23:35:54.000000000 +0200
-+++ bin/foreman-node 2014-09-27 23:39:19.000000000 +0200
+--- bin/foreman-node.orig 2015-05-15 19:21:46 UTC
++++ bin/foreman-node
@@ -5,7 +5,7 @@
require 'yaml'
--$settings_file = "/etc/salt/foreman.yaml"
-+$settings_file = "%%LOCALBASE%%/etc/salt/foreman.yaml"
+-$settings_file = '/etc/salt/foreman.yaml'
++$settings_file = '%%LOCALBASE%%/etc/salt/foreman.yaml'
SETTINGS = YAML.load_file($settings_file)
require 'net/http'
Index: sysutils/rubygem-smart_proxy_salt/files/salt.rb
===================================================================
--- sysutils/rubygem-smart_proxy_salt/files/salt.rb
+++ sysutils/rubygem-smart_proxy_salt/files/salt.rb
@@ -1 +1 @@
-gem 'smart_proxy_salt', '0.0.2'
+gem 'smart_proxy_salt'
Index: sysutils/rubygem-smart_proxy_salt/files/salt.yml.sample
===================================================================
--- sysutils/rubygem-smart_proxy_salt/files/salt.yml.sample
+++ /dev/null
@@ -1,4 +0,0 @@
----
-:enabled: true
-:autosign_file: /usr/local/etc/salt/autosign.conf
-:salt_command_user: root
Index: sysutils/rubygem-smart_proxy_salt/pkg-message
===================================================================
--- sysutils/rubygem-smart_proxy_salt/pkg-message
+++ sysutils/rubygem-smart_proxy_salt/pkg-message
@@ -1,5 +1,5 @@
Further configuration is required to connect salt and foreman-proxy, see:
-https://github.com/theforeman/foreman_salt/wiki#21-smart-proxy
+http://theforeman.org/plugins/foreman_salt/2.0/#2.1SmartProxy
To upload reports from SaltStack highstates to Foreman, add a line like this to your /etc/crontab:
*/10 * * * * root /usr/local/sbin/upload-salt-reports >>/var/log/foreman-proxy/salt-cron.log 2>&1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 9:52 AM (22 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41741337
Default Alt Text
D2568.1794736354.diff (4 KB)
Attached To
Mode
D2568: sysutils/rubygem-smart_proxy_salt: update to 2.1.2
Attached
Detach File
Event Timeline