I work on almost basis with the Enterprise Java container known as JBoss AS
7. JBoss’s main configuration file, standalone-full.xml, is a whopping 553
lines long. While it is very long, it actually quite cleanly structured,
especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot easier
for me
My template is referencing directly against node attributes, you may
with to pass variables to the template resource for config items that
aren't exactly node attributes.
I work on almost basis with the Enterprise Java container known as JBoss AS
7. JBoss's main configuration file, standalone-full.xml, is a whopping 553
lines long. While it is very long, it actually quite cleanly structured,
especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot easier
for me
My template is referencing directly against node attributes, you may
with to pass variables to the template resource for config items that
aren't exactly node attributes.
I work on almost basis with the Enterprise Java container known as JBoss AS
7. JBoss's main configuration file, standalone-full.xml, is a whopping 553
lines long. While it is very long, it actually quite cleanly structured,
especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot easier
for me
My template is referencing directly against node attributes, you may
with to pass variables to the template resource for config items that
aren't exactly node attributes.
I work on almost basis with the Enterprise Java container known as JBoss AS
7. JBoss's main configuration file, standalone-full.xml, is a whopping 553
lines long. While it is very long, it actually quite cleanly structured,
especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot easier
for me
I work on almost basis with the Enterprise Java container known as JBoss
AS 7. JBoss's main configuration file, standalone-full.xml, is a whopping
553 lines long. While it is very long, it actually quite cleanly
structured, especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot easier
for me
I work on almost basis with the Enterprise Java container known as JBoss
AS 7. JBoss's main configuration file, standalone-full.xml, is a whopping
553 lines long. While it is very long, it actually quite cleanly structured,
especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot easier
for me
afaict, it won't work if you have any ruby in the included templates. You
could get aroung that by having a template resource in your main recipe for
each included "template" but I think that is unnecessary verbosity.
Also, I have no idea how well different EJB containers handle the xml:include statement. Perhaps there are gotchas there that I am not
aware of. Also, it's something I would rather not become an expert on
I work on almost basis with the Enterprise Java container known as JBoss
AS 7. JBoss's main configuration file, standalone-full.xml, is a
whopping
553 lines long. While it is very long, it actually quite cleanly
structured,
especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This
process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot
easier
for me
(Do as I say, not as I do: the node attribute accessors should
probably be strings vs symbols, but that's a future improvement).
My template is referencing directly against node attributes, you may
with to pass variables to the template resource for config items that
aren't exactly node attributes.
I work on almost basis with the Enterprise Java container known as
JBoss AS
7. JBoss's main configuration file, standalone-full.xml, is a
whopping 553
lines long. While it is very long, it actually quite cleanly
structured,
especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This
process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot
easier
for me
I work on almost basis with the Enterprise Java container known as JBoss
AS 7. JBoss’s main configuration file, standalone-full.xml, is a
whopping 553 lines long. While it is very long, it actually quite
cleanly structured, especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This
process would be a billion times easier and more readable if I could
include fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<extensions>
<% if @infinispan -%>
<extension module="org.jboss.as.clustering.infinispan"/>
<% end -%>
<extension module="org.jboss.as.web"/>
<% if @webservices -%>
<extension module="org.jboss.as.webservices"/>
<% end -%>
<extension module="org.jboss.as.weld"/>
</extensions>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot
easier for me
I work on almost basis with the Enterprise Java container known as JBoss
AS 7. JBoss's main configuration file, standalone-full.xml, is a whopping
553 lines long. While it is very long, it actually quite cleanly
structured, especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot easier
for me
I work on almost basis with the Enterprise Java container known as JBoss
AS 7. JBoss's main configuration file, standalone-full.xml, is a whopping
553 lines long. While it is very long, it actually quite cleanly
structured, especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot
easier for me
I work on almost basis with the Enterprise Java container known as JBoss
AS 7. JBoss's main configuration file, standalone-full.xml, is a whopping
553 lines long. While it is very long, it actually quite cleanly
structured, especially when compared to something like sendmail.cf
Templating such a large file is a mega PITA. JBoss AS 7 is nicely
componentized so that you can easily turn on and off modules. This process
would be a billion times easier and more readable if I could include
fragments within and erubis template like this:
<?xml version='1.0' encoding='UTF-8'?>
<% if @infinispan -%>
<% end -%>
<% if @webservices -%>
<% end -%>
<% if @infinispan
include_template "infinispan.xml.erb"
end -%>
<% if @webservices
include_template "webservices.xml.erb"
end -%>
......
As you can see, this is far more readable than adding complex logic to
already large file
Is this at all feasible currently in Chef? It would make life a lot
easier for me