Commit 8a5b6f28d3ae0323cd6991965ea4ef1d4c782523

Authored by root ago
1 parent e175d46773
Exists in master

api deploy prototype has added

Showing 3 changed files with 27 additions and 0 deletions Side-by-side Diff

api-deploy.sh View file @ 8a5b6f2
  1 +hostname KR-API-01
  2 +puppet apply manifests/api-server-deploy.pp --modulepath=/root/puppet/modules::/etc/puppet/modules --debug
... ... @@ -5,4 +5,6 @@
5 5  
6 6 puppet module install puppetlabs-vcsrepo
7 7 puppet module install puppetlabs-stdlib
  8 +puppet module install puppetlabs-java
  9 +puppet module install maestrodev-maven
manifests/api-server-deploy.pp View file @ 8a5b6f2
  1 +node /^kr-api-\d+$/ {
  2 +
  3 + class { 'java':
  4 + distribution => 'jdk',
  5 + }
  6 +
  7 + class { 'maven::maven':
  8 + version => '3.1.1',
  9 + }
  10 +
  11 + vcsrepo { '/tmp/pikicast-new-api':
  12 + ensure => latest,
  13 + provider => git,
  14 + source => 'ssh://git@gitlab.pikicast.com:2222/piki_devops/pikicast-new-api-v1-1.git',
  15 + revision => 'master',
  16 + }
  17 +
  18 + exec { 'build_pikicast-new-api':
  19 + cwd => '/tmp/pikicast-new-api',
  20 + command => 'mvn -U clean compile package -Dmaven.test.skip=true',
  21 + path => '/usr/local/bin/:/usr/bin:/bin',
  22 + }
  23 +}