[systemd-devel] [PATCH 1/4] Add ENVIRONMENT to hostnamectl

"Jóhann B. Guðmundsson" johannbg at gmail.com
Thu Jul 10 17:01:19 PDT 2014


On 07/10/2014 11:37 PM, Lennart Poettering wrote:
> On Thu, 10.07.14 21:04, Jóhann B. Guðmundsson (johannbg at gmail.com) wrote:
>
>> >
>> >
>> >On 07/10/2014 08:44 PM, Lennart Poettering wrote:
>>> > >On Thu, 10.07.14 18:45, Jóhann B. Guðmundsson (johannbg at gmail.com) wrote:
>>> > >
>>>>>> > >>>>Seeing this list, why not name the variable Tier= ? Or
>>>>>> > >>>>DeploymentTier=, if just Tier is too specific?
>>>> > >>This is specific for defining staging environment not their layer so
>>>> > >>can I simple get an ack nack on the deployment patch and those that
>>>> > >>also want to be able to define free string in there can just patch
>>>> > >>it.
>>> > >Well, as I mentioned earlier, patch looks generally OK, but I am not OK
>>> > >with the strict checking of the value. It sounds Ok to verify that it is
>>> > >a single word, from a limited charset, but we are not going to become
>>> > >the standardization institute for IT workflows.
>>> > >
>>> > >Please remove the strict checking against the vocabulary, and repost!
>>> > >
>>> > >(also needs man page updates...)
>> >
>> >Then it wont solve the problem I was hoping to solve nor can I
>> >continue the other work I planned on based on these specific values
>> >so feel free to implement as you see fit or drop it altogether.
> Hmm? Not follow here. You still can use the exact values you want,
> however, the service will not check them against a whitelist, that's
> all.

Systemd integration was just one part, the other part was I was going to 
contact Karel since I had noticed he has been gradually working on 
bringing consistency in terminal colorized output in commands the 
core/baseOS so I wanted to see if we could not come up with terminal 
color system theme ( which basically administrators have been trying to 
do and fail miserable in doing so based on the machine staging 
environment ) and work on integrating that.

Something like

DEPLOYMENT=Development could be associated with green terminal colour theme
DEPLOYMENT=Integration could be associated with yellow terminal colour theme
DEPLOYMENT=Staging could be associated with orange terminal colour theme
DEPLOYMENT=Production could be associated with red terminal colour theme

Then David had suggested to extend this further with in systemd by 
adding ConditionDeployment= which is a valid request from my point ( we 
disable for example various servers depending on which staging 
environments they are in )

I had already submitted new patch with deployment "[PATCH] Add 
DEPLOYMENT to hostnamectl" which Zbyszek had suggested and you agreed to 
and FYI this has nothing to with trying to standardize anything it's 
about bringing consistency in the system for machines in certain 
deployment stages so administrators/developers will immediately identify 
in which stage the environment they are working in, is at.

JBG


More information about the systemd-devel mailing list