Add config.json file generation

The Refstack UI JS expects a config.json file to tell it the base
URL of the API. Without this file, API calls cannot be made, so puppet
should generate this file.

Change-Id: I6ae9d18c22771561d18691faabe53ee575b9486b
This commit is contained in:
Paul Van Eck 2015-07-20 11:32:30 -07:00
parent f23cdca396
commit d332ad4895
1 changed files with 7 additions and 0 deletions

View File

@ -85,4 +85,11 @@ class refstack::app () {
'HOME=/home/refstack'
]
}
# Create config.json file
file { "${src_www_root}/refstack-ui/app/config.json":
ensure => file,
content => '{"refstackApiUrl": "/api/v1"}',
require => Vcsrepo[$src_www_root],
}
}