pellepelster.springboot-role

役割名

この役割はSpring Bootアプリケーションを準備します。

要件

Spring Bootアプリケーションは、executableオプションがtrueに設定されたSpring Boot Gradleプラグインを使用して構築される必要があります。これにより、ビルドはサービスとして使用できる実行可能なJARを生成します。

例: build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE")
    }
}

apply plugin: 'java'
apply plugin: 'spring-boot'

repositories {
    mavenCentral()
}

dependencies {
    compile("org.springframework.boot:spring-boot-starter-web")
    compile("org.springframework.boot:spring-boot-starter-actuator")
    testCompile("org.springframework.boot:spring-boot-starter-test")
}

springBoot {
    executable = true
}

役割変数

この役割をパラメータ化するために使用できる変数とその簡単な説明は次の通りです。(すべての変数についてはdefaults/main.ymlを見てください)

# ロールを通じてユーザー名、アプリケーションがインストールされるフォルダなどを導き出すために使用されるアプリケーションID
spring_boot_application_id: "springbootapplication"

# Spring BootアプリケーションがリッスンするHTTPポート
spring_boot_http_port: 8080

依存関係

依存関係はありません。

例: プレイブック

変数をパラメータとして渡す方法を示す例を含めるのは、ユーザーにとっても良いです:

hosts: localhost
roles:
- { role: ansible-springboot-role, 
    spring_boot_file_source_local: 'example-application.jar' 
  }

ライセンス

BSD

作成者情報

クリスチャン・ペルスター、pelle@pelle.iohttps://github.com/pellepelster/ansible-springboot-role

プロジェクトについて

This roles provisions a Spring Boot application

インストール
ansible-galaxy install pellepelster.springboot-role
ライセンス
Unknown
ダウンロード
509