i think you need a list type property and then 'is one of'
Yes but that is not an option from Component template - > open (template) -> local properties
I have simple and string selected but when setting the default value spaces, double quotes or commas are not making a list but one item.
There are other entries like world writeable directories list which is set as above with /opt,/usr which is working as a list.
At the moment I have multiple properties set up instead eg ??ntp-server-gib-ip?? ??ntp-server-gib-host?? so that the rule is using them as a list. It would be much simpler to have one property that is a list instead.
Complex | List [String]
I did see this but then the default value is greyed out - just spotted that you need to create the list like in the rules.
OK - have created some local properties, but when I go into the rule and do "is substring of" the new local property is not available from the drop down list (if it is manually entered an error occurs).
So how do I get the local properties refreshed so that they are usable? The simple local properties show up without any problems but none of the complex ones are working.
You may need to save the template after you create the local property. Then I think you use ‘is one of’ or ‘contains’
Hi template has been saved numerous times but the new complex local properties are not showing.
If you select is one of and then try and put the local property into the list it comes up with an error saying that is must be of type "string" and not "list[string]" for it to work with "is one of".
So how do you access the complex local properties?
The list takes only text, not other property values. The list should contain the ntp servers. what are you trying to put in there?
I am trying to use complex (list[string]) local properties attached to a template to hold information like ntp servers checksums so that they can be used in rules.
The reason for doing this is to 1, make it easier to administer as the variables are all in local properties and not in the rules and 2 not need to create a variable for each site.
I have 4 geographical locations with there own ntp servers, log servers, checksums for motd/issue/issue.net etc
So being able to use a complex list[string] property to cover the different locations would be a really simple, tidy, easily administrable solution.
But although it is letting me create the property it is not letting me access them. (The same is true for BL v8)
yeah, i see what you are trying to do. so you can make a list directly in the rule, but you can't reference a list property from the rule.
you might be able to do something like creating a custom class for 'location' then properties in the class for all your settings, then instances for each location w/ the right values set, but you will end up w/ NTP_1, NTP_2 and your rules will have to be 'is one of NTP_1 NTP_2' etc...