<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 07/09/2014 01:05 AM,
<a class="moz-txt-link-abbreviated" href="mailto:josh@joshtriplett.org">josh@joshtriplett.org</a> wrote:<br>
</div>
<blockquote cite="mid:20140709010521.GA11612@cloud" type="cite">
<pre wrap="">On Tue, Jul 08, 2014 at 10:45:11PM +0000, "Jóhann B. Guðmundsson" wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>On 07/08/2014 10:45 PM, Josh Triplett wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> ></span>[Responding to this version because the latest thread hasn't appeared in
<span class="moz-txt-citetags">> ></span>the mbox archives yet. The comments apply equally well to the latest
<span class="moz-txt-citetags">> ></span>version, "Add DEPLOYMENT to hostnamectl".]
<span class="moz-txt-citetags">> ></span>
<span class="moz-txt-citetags">> ></span>On Tue, Jul 08, 2014 at 12:38:50AM +0000, Jóhann B. Guðmundsson wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> >></span>+static bool valid_environment(const char *environment) {
<span class="moz-txt-citetags">> >></span>+
<span class="moz-txt-citetags">> >></span>+ assert(environment);
<span class="moz-txt-citetags">> >></span>+
<span class="moz-txt-citetags">> >></span>+ return nulstr_contains(
<span class="moz-txt-citetags">> >></span>+ "development\0"
<span class="moz-txt-citetags">> >></span>+ "staging\0"
<span class="moz-txt-citetags">> >></span>+ "production\0",
<span class="moz-txt-citetags">> >></span>+ environment);
<span class="moz-txt-citetags">> >></span>+}
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">> ></span>Can we please <b class="moz-txt-star"><span class="moz-txt-tag">*</span>not<span class="moz-txt-tag">*</span></b> attempt to limit or "standardize" this particular
<span class="moz-txt-citetags">> ></span>set of machine roles? As already demonstrated in the previous thread,
<span class="moz-txt-citetags">> ></span>people have all sorts of staged deployment strategies. Furthermore,
<span class="moz-txt-citetags">> ></span>the concept of a machine role shouldn't be limited to service deployment
<span class="moz-txt-citetags">> ></span>strategies.
<span class="moz-txt-citetags">> ></span>
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>Roles != the environment they run in.
</pre>
</blockquote>
<pre wrap="">I'm not trying to bikeshed over the naming of the variable itself. I'm
arguing that standardizing this particular bit of metadata won't work
well when so many different deployment strategies exist. Thus, rather
than having a fixed set of keywords, I'd propose simply saying "this
contains keywords", and leaving the specific keywords up to the admin.
If you attempt to standardize production/development/staging, you'll
either end up with a model that only works for a small subset of
deployments, or you'll end up adding twelve more keywords, at which
point you might as well have just said "use whatever keyword you like".</pre>
</blockquote>
<br>
The 4 tier covers the majority of the models since more or less the
entire internet recommend three tier model including M$ [1] <br>
Anyone wanting to extend that further can do so using the
"PRETTY_HOSTNAME=" <br>
<br>
This patch is very specific to deployment environment and to solve a
very specific long standing problem and to achieve that we need to a
standardize, if we dont we can just as well drop this patch since in
the long run we cannot introduce something like
"ConditionDeployment=" like David mentioned and it kinda defeat's my
purpose working in this in the firsplace...<br>
<br>
1.
<a class="moz-txt-link-freetext" href="http://msdn.microsoft.com/en-US/library/cc982570%28v=bts.10%29.aspx">http://msdn.microsoft.com/en-US/library/cc982570%28v=bts.10%29.aspx</a><br>
</body>
</html>