Skip to content

Instantly share code, notes, and snippets.

yo jhipster
<%_ if (databaseType == 'sql') { _%>
compile "org.hibernate:hibernate-core:${hibernate_entitymanager_version}"
compile("com.zaxxer:HikariCP") {
exclude(module: 'tools')
}
<%_ } _%>
? (12/15) Would you like to generate Terraform files? (Use arrow keys)
Yes
❯ No
{
type: 'list',
name: 'terraform',
message: function (response) {
return getNumberedQuestion('Would you like to generate Terraform files?', true);
},
choices: [
{
value: 'yes',
name: 'Yes'
writing: {
cleanupOldServerFiles: function() {
cleanup.cleanupOldServerFiles(this, this.javaDir, this.testDir);
},
writeGlobalFiles: function () {
this.template('_README.md', 'README.md', this, {});
this.copy('gitignore', '.gitignore');
this.copy('gitattributes', '.gitattributes');
resource "aws_autoscaling_group" "<%= dasherizedBaseName %>" {
launch_configuration = "${aws_launch_configuration.<%= dasherizedBaseName %>.id}"
availability_zones = ["${data.aws_availability_zones.all.names}"]
min_size = "${var.min_size}"
max_size = "${var.max_size}"
load_balancers = ["${aws_elb.<%= dasherizedBaseName %>.name}"]
health_check_type = "ELB"
@pb8226
pb8226 / JHipster Execution
Last active April 30, 2018 21:09
JHipster Blog
yo jhipster
@pb8226
pb8226 / run-ansible.sh
Created October 23, 2015 15:30
Packer and Ansible Commands
ansible-playbook -i ansible-inventory.ini provision-server-playbook.yml
@pb8226
pb8226 / provision-server-playbook.yml
Last active October 26, 2015 22:45
Ansible Blue/Green Deploy to Rackspace Playbook
---
- name: Get Load Balancer Info
gather_facts: False
hosts: webservers
tasks:
- name: Retrieve Load Balancer Information
local_action:
module: rax_clb
name: '{{load_balancer_name}}'
port: 80
@pb8226
pb8226 / ansible-inventory.ini
Last active October 26, 2015 22:45
Ansible Inventory File
[webservers]
localhost
[webservers:vars]
rackspace_image=project-name-$bamboo_buildResultKey
server_name=nodejs-AU-PSQA.cmx-
load_balancer_name=AT-PSQA-AU
instances_count=1
rackspace_private_key_path=/home/bamboo/RackSpacePrivateKey.pk
rackspace_region=IAD