path: root/doc/forum/Separation_of_data_and_code.mdwn
diff options
authormetst13@1d16544ec52801db7efb2895d3dc7a4458b8eb452018-07-06 09:10:18 +0000
committeradmin2018-07-06 09:10:18 +0000
commit5c6b7ed38be3426039ed087aa7134ee392ee29dd (patch)
treed12846db64a97c096f742847ddd21dbbcac130c8 /doc/forum/Separation_of_data_and_code.mdwn
parent30ce1535b66f402ff8316554000f1a3dc729c26f (diff)
Diffstat (limited to 'doc/forum/Separation_of_data_and_code.mdwn')
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/forum/Separation_of_data_and_code.mdwn b/doc/forum/Separation_of_data_and_code.mdwn
new file mode 100644
index 00000000..3a09a237
--- /dev/null
+++ b/doc/forum/Separation_of_data_and_code.mdwn
@@ -0,0 +1,11 @@
+I'm using Fedora for the desktop and CentOS on my server. I have many software packages to install. I store them in shell scripts, with lines like this:
+ yum -y install vim-common vim-enhanced gvim vim-X11 # the latter for clipboard support
+I'm thinking about some more elaborate way to do that (to put some packages to specific hosts and groups). Propellor seems an interesting tool for that, but when I see an [example configuration file](, it looks like this is a mixture of data and logic, which is considered [not a very good practice](
+I know that Haskell itself is a very declarative language (in the sense it's not imperative), but still I have this feeling of a mixture of code with constants. What do you think of that?
+Is there a way to cleanly store names of packages (with comments and some configuration options (e.g. on what hosts they should be used)) in one place and use propellor's logic to install them in another place?
+I understand that the power of propellor is to `do` things apart of just enumerating them, but I think that this separation could be useful.