Merge "Autodeployer support for ODL Plugin installation + Fuel 6.1"
[genesis.git] / fuel / build / f_opnfv_puppet / puppet / modules / opnfv / manifests / opncheck.pp
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 # Class: opnfv::opncheck
12 #
13 # Make sure that /opt/opnfv/pre-deploy.sh has been run by
14 # verifying there is an "opnfv:" level in the astute.yaml.
15
16 class opnfv::opncheck()
17 {
18   unless $::fuel_settings['opnfv'] {
19     fail("Error: You have not run /opt/opnfv/pre-deploy.sh on the Fuel master prior to deploying!")
20   }
21 }