Added ansible server to docker-compose.yml and made a few config changes:
- redirect of output in final exec causes exec to fail. Instead, need
to redirect output in standalone exec line. Redirected to
/var/log/ansible-server.log
- Updated LCM config to use ansiblehost alias to reach ansible
(was incorrectly using 0.0.0.0)
Change-Id: I4b1b6bbc5f3df6f480333d53adda4c8e6e0d6510
Issue-ID: SDNC-288
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Former-commit-id:
50c65c2c7cd92db6d14215114d098b33da5f618d
.settings
.idea
.externalToolBuilders
+.pydevproject
maven-eclipse.xml
workspace
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
-# *
+# *
# * ECOMP is a trademark and service mark of AT&T Intellectual Property.
# * ============LICENSE_END=========================================================
# */
# Host definition
-ip: 0.0.0.0
+ip: 0.0.0.0
port: 8000
# Security (controls use of TLS encrypton and RestServer authentication)
psswd: sdnc
# Mysql
-host: localhost
+host: dbhost
user: sdnc
passwd: sdnc
db: ansible
#/bin/bash
+exec &> /var/log/ansible-server.log
if [ ! -d /tmp/.ansible-server-installed]
then
fi
cd /opt/onap/sdnc
-exec python RestServer.py > RestServer.out
\ No newline at end of file
+exec python RestServer.py
\ No newline at end of file
-ansible.agenturl=http://0.0.0.0:8000/Dispatch
+ansible.agenturl=http://ansiblehost:8000/Dispatch
ansible.user=sdnc
ansible.password=sdnc
ansible.lcm.localparameters=
max-size: "30m"
max-file: "5"
+ ansible:
+ image: onap/sdnc-ansible-server-image:latest
+ depends_on :
+ - db
+ container_name: sdnc_ansible_container
+ entrypoint: ["/opt/onap/sdnc/startAnsibleServer.sh"]
+ ports:
+ - "8000"
+ links:
+ - db:dbhost
+ - db:sdnctldb01
+ - db:sdnctldb02
+ environment:
+ - MYSQL_ROOT_PASSWORD=openECOMP1.0
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
sdnc:
image: onap/sdnc-image:latest
depends_on :
- db
+ - ansible
container_name: sdnc_controller_container
entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
ports:
- db:dbhost
- db:sdnctldb01
- db:sdnctldb02
+ - ansible:ansiblehost
environment:
- MYSQL_ROOT_PASSWORD=openECOMP1.0
- SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
- dns:
- - ${DNS_IP_ADDR-10.0.100.1}
logging:
driver: "json-file"
options: