Build React Native App (4) - Redux, Jest, and NativeBase

Image
From this blog, typescript feature will be added. There are couple of ways to implement static type checking like; flow from facebook, PropTypes and Typescript. Typescript is well integrated with Visual Studio Code and supports better linter, error messages, and intellisense. Reference site Github Sample Ex4 Currnet version D:\GitRepo\reactnative>npm --version 6.3.0 D:\GitRepo\reactnative>react-native --version react-native-cli: 2.0.1 react-native: n/a - not inside a React Native project directory D:\GitRepo\reactnative>yarn --version 1.9.4 Creating React Native App $ react-native init ex4 If you want to specify the version, add "--version 0.57.3" at the end. Add NativeBase to React Native $ npm install native-base --save ... + native-base@2.8.1 added 71 packages from 42 contributors, removed 50 packages, updated 829 packages and audited 34989 packages in 138.542s found 0 vulnerabilities $ $ yarn yarn install v1.9.4 warning package-lock.json found. You

Automation with Ansible (3) - Create/Provisioning Virtual Machine from Template using vsphere_client on VSphere environment

Creating/Provisioing VM using ansible

From this tutorial, we will create new VM from template file using vsphere_client.

Reference

Deploy from template

Deploying from template has two options for the target; 1. Cluster and 2. ESX host.

  • resource_pool: A resource pool is a logical abstraction for flexible management of resources. Resource pools can be grouped into hierarchies and used to hierarchically partition available CPU and memory resources.
    resource_pool
    resource_pool
  • Template:
    CentOSTemplate
- name: Create VM from Template
  hosts: localhost
  connection: local
  tasks:
  - name: createVM from Template on Cluster
    - vsphere_guest:
      vcenter_hostname: 10.200.0.11
      username: administrator@vsphere.local
      password: mypass
      guest: centostemplate01
      from_template: yes
      template_src: CentOSTemplate
      cluster: FlairCluster
      resource_pool: "/Resources/Docker"
      vm_extra_config:
        folder: Docker
  - name: createVM from Template on ESX
    - vsphere_guest:
      vcenter_hostname: 10.200.0.11
      username: administrator@vsphere.local
      password: mypass
      guest: centostemplate02
      from_template: yes
      template_src: CentOSTemplate
      esxi:
        datacenter: FlairTest
        hostname: 10.200.0.51
      vm_extra_config:
        folder: Docker

Result

  • Creating to Cluster
    Cluster_result
  • Creating to ESX
    ESX Result

Summary

From this testing, we cloned from the template to ESX or Cluster. Next tutorial will try to manage IP Address on cloned copy.

Comments

Popular posts from this blog

Export folder structure to file on Windows, Mac, and Linux

Adding SOAP Header generated by JAXB(wsimport)

Sample application for Active Directory SSO with Spring Security 4 and Waffle