Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #7943: Merge distributePolicy from initial promises and system technique #874

Conversation

peckpeck
Copy link
Member

@@ -30,6 +30,12 @@ all: rudder-templates-cli.jar
java -jar rudder-templates-cli.jar --outext .cf --outdir initial-promises/node-server/inventory/1.0 techniques/system/inventory/1.0/virtualMachines.st
java -jar rudder-templates-cli.jar --outext .cf --outdir initial-promises/node-server/inventory/1.0 techniques/system/inventory/1.0/fetchFusionTools.st
java -jar rudder-templates-cli.jar --outext .cf --outdir initial-promises/node-server/inventory/1.0 techniques/system/inventory/1.0/fusionAgent.st
sed -i -e 's/.*TRACKINGKEY.*/ "TRACKINGKEY": "root-DP@@root-distributePolicy@@00",/' variables.json
cp techniques/system/distributePolicy/1.0/rudder-ncf-conf.st initial-promises/node-server/distributePolicy/ncf/ncf.conf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not comfortable with this just being a simple cp, while the file is a .st file and is listed in the technique's metadata.xml file as a TML (not a file that is just copied).

I realise it doesn't have any StringTemplate syntax in today, but if someone adds some in, this cp will directly include it in initial promises, and probably break a lot of things.

I see two alternatives:

  1. We change the metadata.xml to list this file as a simple file to copy, not a TML (best, IMHO)
  2. We run this file through the jar to de-StringTemplate it for initial-promises, in case one day it contains StringTemplate stuff (unncessary, IMHO, but least requires less changes)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I would change the extension and the metadata.xml in the .cf cleaning PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, so long as we don't forget

@peckpeck
Copy link
Member Author

PR updated

@peckpeck peckpeck force-pushed the arch_7943/merge_distrubutepolicy_from_initial_promises_and_system_technique branch from 80ab0c7 to 6c23ad7 Compare February 25, 2016 11:22
@jooooooon
Copy link
Member

Aside from the missing file copy (relay syslog config), this looks good to me! 👍

@jooooooon
Copy link
Member

Ping @peckpeck

@peckpeck
Copy link
Member Author

PR updated

@peckpeck peckpeck force-pushed the arch_7943/merge_distrubutepolicy_from_initial_promises_and_system_technique branch from 6c23ad7 to 54e80df Compare April 29, 2016 16:51
@peckpeck
Copy link
Member Author

PR updated

@peckpeck peckpeck force-pushed the arch_7943/merge_distrubutepolicy_from_initial_promises_and_system_technique branch from 54e80df to d599ac9 Compare April 29, 2016 16:56
@@ -44,4 +52,7 @@ clean:
rm -f initial-promises/node-server/node-server/inventory/1.0/virtualMachines.st
rm -f initial-promises/node-server/node-server/inventory/1.0/fetchFusionTools.cf
rm -f initial-promises/node-server/node-server/inventory/1.0/fusionAgent.cf

rm -f initial-promises/node-server/distributePolicy/ncf/ncf.conf
rm -f initial-promises/node-server/distributePolicy/rsyslog.conf/rudder-rsyslog-root.conf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing rudder-rsyslog-relay.conf

@jooooooon
Copy link
Member

Aside from those 2 comments this looks good to me!

@peckpeck peckpeck force-pushed the arch_7943/merge_distrubutepolicy_from_initial_promises_and_system_technique branch from d599ac9 to 4b4bfb6 Compare May 2, 2016 16:41
@peckpeck
Copy link
Member Author

peckpeck commented May 2, 2016

PR updated

@jooooooon jooooooon merged commit 4b74c7a into Normation:master May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants