Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171538045
D1276.id2672.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D1276.id2672.diff
View Options
Index: sysutils/rubygem-smart_proxy_salt/Makefile
===================================================================
--- sysutils/rubygem-smart_proxy_salt/Makefile
+++ sysutils/rubygem-smart_proxy_salt/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= smart_proxy_salt
-PORTVERSION= 0.0.2
-PORTREVISION= 1
+PORTVERSION= 1.0.0
CATEGORIES= sysutils ruby
MASTER_SITES= RG
@@ -27,7 +26,8 @@
-e "s|/usr/bin/env ruby|${RUBY}|g" \
-e "s|/usr/bin/env python|${PYTHON_CMD}|g" \
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
- ${WRKSRC}/bin/foreman-node
+ ${WRKSRC}/bin/foreman-node \
+ ${WRKSRC}/sbin/upload-salt-reports
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/foreman-proxy
@@ -38,5 +38,6 @@
${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
.include <bsd.port.post.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-0.0.2.gem) = 7b3ea0eb67a9a0fd05ab9179e3f45b59968407d13720dbdd92e70b78cb601f73
-SIZE (rubygem/smart_proxy_salt-0.0.2.gem) = 20992
+SHA256 (rubygem/smart_proxy_salt-1.0.0.gem) = a0a84ef93c6608701b8fd53d56c7e9e3a1793f13a0e65fc8ee4fada8be07ab3f
+SIZE (rubygem/smart_proxy_salt-1.0.0.gem) = 22016
Index: sysutils/rubygem-smart_proxy_salt/files/patch-sbin-upload-salt-reports
===================================================================
--- /dev/null
+++ sysutils/rubygem-smart_proxy_salt/files/patch-sbin-upload-salt-reports
@@ -0,0 +1,15 @@
+--- sbin/upload-salt-reports.orig 2014-11-24 22:04:49.000000000 +0100
++++ sbin/upload-salt-reports 2014-11-24 22:04:56.000000000 +0100
+@@ -1,9 +1,9 @@
+ #!/usr/bin/env python
+ # Uploads reports from the Salt job cache to Foreman
+
+-LAST_UPLOADED = '/etc/salt/last_uploaded'
+-FOREMAN_CONFIG = '/etc/salt/foreman.yaml'
+-LOCK_FILE = '/var/lock/salt-report-upload.lock'
++LAST_UPLOADED = '%%LOCALBASE%%/etc/salt/last_uploaded'
++FOREMAN_CONFIG = '%%LOCALBASE%%/etc/salt/foreman.yaml'
++LOCK_FILE = '/var/run/salt-report-upload.lock'
+
+ import urllib
+ import httplib
Index: sysutils/rubygem-smart_proxy_salt/pkg-message
===================================================================
--- /dev/null
+++ sysutils/rubygem-smart_proxy_salt/pkg-message
@@ -0,0 +1,5 @@
+Further configuration is required to connect salt and foreman-proxy, see:
+https://github.com/theforeman/foreman_salt/wiki#21-smart-proxy
+
+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
Index: sysutils/rubygem-smart_proxy_salt/pkg-plist
===================================================================
--- sysutils/rubygem-smart_proxy_salt/pkg-plist
+++ sysutils/rubygem-smart_proxy_salt/pkg-plist
@@ -1,4 +1,5 @@
bin/foreman-node
+sbin/upload-salt-reports
share/foreman-proxy/bundler.d/salt.rb
@sample etc/foreman-proxy/settings.d/salt.yml.sample
@sample etc/salt/foreman.yaml.sample
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 12, 3:51 PM (19 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38796383
Default Alt Text
D1276.id2672.diff (3 KB)
Attached To
Mode
D1276: sysutils/rubygem-smart_proxy_salt: upgrade to 1.0.0
Attached
Detach File
Event Timeline
Log In to Comment