mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernardo Gomez Palacio <bernardo.gomezpala...@gmail.com>
Subject Re: Merging in packaging tools for Mesos
Date Mon, 15 Jul 2013 18:00:17 GMT
IMHO from a devops perspective its easier to have a file (i can have that file as a Opscode
Chef cookbook template). 
Best
Bernardo.

On Jul 14, 2013, at 3:58 PM, Jason Dusek <jason.dusek@gmail.com> wrote:

> What do you all think about an "envdir" like setup, but for
> options? The motivation is ease of automated configuration
> management: cat and echo are easier than sed. So the conf
> directory would look like:
> 
>  /etc/
>    mesos/
>      zk
>      log_dir
>      ...
> 
> Then we'd construct the command line thusly:
> 
>  args=()
>  cd /etc/mesos
>  for f in *
>  do args=( "${args[@]:+${args[@]}}" --"$f" "$(cat "$f")" )
>  done
> 
> This implementation requires a Bash feature, namely arrays, but
> Bash is fairly widespread now.
> 
> --
> Jason Dusek
> pgp // solidsnack // C1EBC57DC55144F35460C8DF1FD4C6C1FED18A2B
> 
> 
> 2013/7/12 Bernardo Gomez Palacio <bernardo.gomezpalacio@gmail.com>:
>> Amending
>> 
>> On Fri, Jul 12, 2013 at 12:38 PM, Bernardo Gomez Palacio <
>> bernardo.gomezpalacio@gmail.com> wrote:
>> 
>>> # Initialize the _Command_ options.
>>> OPTIONS="--log_dir=$LOG_DIR"
>>> if [ -n "$CONFIGFILE" ]; then
>>>    OPTIONS=`paste -d " " <(cat $CONFIGFILE  | grep -e "^[--]" )`
>>> fi
>>> 


Mime
View raw message