Add exec to generate doc HTML templates

RefStack will soon have a script[1] to generate HTML
templates from the RST docs. The 'about' page for the
RefStack website will depend on this script being run.
This patch will have puppet run the script everytime
a new version of RefStack is installed.

[1] https://review.openstack.org/#/c/458310

Change-Id: Ib5bdf3ab0b9944d54be79330e38bc9acfbf25c65
This commit is contained in:
Paul Van Eck 2017-04-27 13:49:36 -07:00
parent 4336f5fb05
commit ea2dfa5655
1 changed files with 8 additions and 0 deletions

View File

@ -165,6 +165,14 @@ class refstack::app () {
]
}
# Generate HTML templates from docs
exec { 'generate-doc-html':
command => "python ${src_root}/tools/convert-docs.py -o ${src_root}/refstack-ui/app/components/about/templates ${src_root}/doc/source/*.rst",
path => '/usr/local/bin:/usr/bin:/bin',
refreshonly => true,
subscribe => Exec['install-refstack']
}
# Create config.json file.
file { "${src_root}/refstack-ui/app/config.json":
ensure => file,